{ "opencollection": "1.0.0", "info": { "name": "API Reference subpackage_actions subpackage_tokens API", "version": "1.0.0" }, "items": [ { "info": { "name": "subpackage_tokens", "type": "folder" }, "items": [ { "info": { "name": "List API tokens", "type": "http" }, "http": { "method": "GET", "url": "http://localhost:8000/api/token/", "headers": [ { "name": "Authorization", "value": "" } ], "params": [ { "name": "ordering", "value": "", "type": "query", "description": "Which field to use when ordering the results." } ] }, "docs": "List all API tokens for the current user." }, { "info": { "name": "Create API token", "type": "http" }, "http": { "method": "POST", "url": "http://localhost:8000/api/token/", "headers": [ { "name": "Authorization", "value": "" } ] }, "docs": "Create a new API token for the current user." }, { "info": { "name": "Blacklist a JWT refresh token", "type": "http" }, "http": { "method": "POST", "url": "http://localhost:8000/api/token/blacklist/", "body": { "type": "json", "data": "{}" } }, "docs": "Adds a JWT refresh token to the blacklist, preventing it from being used to obtain new access tokens." }, { "info": { "name": "Refresh JWT token", "type": "http" }, "http": { "method": "POST", "url": "http://localhost:8000/api/token/refresh/", "body": { "type": "json", "data": "{}" } }, "docs": "Get a new access token, using a refresh token." }, { "info": { "name": "Rotate JWT refresh token", "type": "http" }, "http": { "method": "POST", "url": "http://localhost:8000/api/token/rotate/", "headers": [ { "name": "Authorization", "value": "" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Creates a new JWT refresh token and blacklists the current one." } ] } ], "bundled": true }