@ankitkayastha please remove TokenHasReadWriteScope from permissions for requests (was worried about massive merge conflicts), the updated IsAdminOrReadOnlyhandles this case :D
GET /api/user/auth/token HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Authorization: Bearer
Response:
{
"token": "<alphanumeric_tokenz>"
}
In order to use:-
Do a header for:-
Authorization: Token
Gets a new api-key or returns the old one 🗡
@ankitkayastha please remove TokenHasReadWriteScope from permissions for requests (was worried about massive merge conflicts), the updated IsAdminOrReadOnlyhandles this case :D
GET /api/user/auth/token HTTP/1.1 Host: localhost:8000 Content-Type: application/json Authorization: Bearer
Response:
In order to use:- Do a header for:- Authorization: Token