POST /o/revoke_token/ HTTP/1.1
Host: localhost:8000
Content-Type: application/x-www-form-urlencoded
Cache-Control: no-cache
token=&client_id=
3) To Post or get an item, make sure there is a bearer
POST /item/ HTTP/1.1
Host: localhost:8000
Content-Type: application/json
Authorization: Bearer
Cache-Control: no-cache
1) --login (http://localhost:8000/o/token/) POST /o/token/ HTTP/1.1 Host: localhost:8000 Content-Type: application/x-www-form-urlencoded Cache-Control: no-cache
grant_type=password&username=&client_id=&password=
Response: { "access_token": "9LlAjIfOf29qZ1E8YeZHWV4dJth8TR", "expires_in": 36000, "token_type": "Bearer", "scope": "read write groups", "refresh_token": "jGB3GGptGdw3vcTgBUZ7NTaBP1p31b" }
2) --logout ()
POST /o/revoke_token/ HTTP/1.1 Host: localhost:8000 Content-Type: application/x-www-form-urlencoded Cache-Control: no-cache
token=&client_id=
3) To Post or get an item, make sure there is a bearer POST /item/ HTTP/1.1 Host: localhost:8000 Content-Type: application/json Authorization: Bearer
Cache-Control: no-cache
{ "name": "Ankit Devices", "quantity": 10, "tags": [{"tag":"hello"}] }