cURL
curl --request POST \ --url http://localhost:8000/api/register/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "username": "<string>", "password": "<string>", "email": "jsmith@example.com" } '
{ "id": 123, "username": "<string>", "email": "<string>" }
Register a new user in the system
{ "username": "user123", "password": "securepassword", "email": "user123@example.com" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
User created successfully