openapi: 3.0.3 info: title: '' version: 0.0.0 paths: /account/api/token/: post: operationId: account_api_token_create description: |- Takes a set of user credentials and returns an access and refresh JSON web token pair to prove the authentication of those credentials. parameters: - in: query name: format schema: type: string enum: - html - json tags: - account requestBody: content: application/json: schema: $ref: '#/components/schemas/TokenObtainPair' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/TokenObtainPair' multipart/form-data: schema: $ref: '#/components/schemas/TokenObtainPair' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/TokenObtainPair' text/html: schema: $ref: '#/components/schemas/TokenObtainPair' description: '' /account/api/token/refresh/: post: operationId: account_api_token_refresh_create description: |- Takes a refresh type JSON web token and returns an access type JSON web token if the refresh token is valid. parameters: - in: query name: format schema: type: string enum: - html - json tags: - account requestBody: content: application/json: schema: $ref: '#/components/schemas/TokenRefresh' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/TokenRefresh' multipart/form-data: schema: $ref: '#/components/schemas/TokenRefresh' required: true responses: '200': content: application/json: schema: $ref: '#/components/schemas/TokenRefresh' text/html: schema: $ref: '#/components/schemas/TokenRefresh' description: '' /account/login/: post: operationId: account_login_create parameters: - in: query name: format schema: type: string enum: - html - json tags: - account security: - jwtAuth: [] - {} responses: '200': description: No response body /account/logout/: post: operationId: account_logout_create parameters: - in: query name: format schema: type: string enum: - html - json tags: - account security: - jwtAuth: [] - {} responses: '200': description: No response body /account/register/: post: operationId: account_register_create parameters: - in: query name: format schema: type: string enum: - html - json tags: - account security: - jwtAuth: [] - {} responses: '200': description: No response body /account/register_teacher/: post: operationId: account_register_teacher_create parameters: - in: query name: format schema: type: string enum: - html - json tags: - account security: - jwtAuth: [] - {} responses: '200': description: No response body /api/schema/: get: operationId: api_schema_retrieve description: |- OpenApi3 schema for this API. Format can be selected via content negotiation. - YAML: application/vnd.oai.openapi - JSON: application/vnd.oai.openapi+json parameters: - in: query name: format schema: type: string enum: - json - yaml - in: query name: lang schema: type: string enum: - af - ar - ar-dz - ast - az - be - bg - bn - br - bs - ca - cs - cy - da - de - dsb - el - en - en-au - en-gb - eo - es - es-ar - es-co - es-mx - es-ni - es-ve - et - eu - fa - fi - fr - fy - ga - gd - gl - he - hi - hr - hsb - hu - hy - ia - id - ig - io - is - it - ja - ka - kab - kk - km - kn - ko - ky - lb - lt - lv - mk - ml - mn - mr - my - nb - ne - nl - nn - os - pa - pl - pt - pt-br - ro - ru - sk - sl - sq - sr - sr-latn - sv - sw - ta - te - tg - th - tk - tr - tt - udm - uk - ur - uz - vi - zh-hans - zh-hant tags: - api security: - jwtAuth: [] - {} responses: '200': content: application/vnd.oai.openapi: schema: type: object additionalProperties: {} application/yaml: schema: type: object additionalProperties: {} application/vnd.oai.openapi+json: schema: type: object additionalProperties: {} application/json: schema: type: object additionalProperties: {} description: '' components: schemas: TokenObtainPair: type: object properties: username: type: string writeOnly: true password: type: string writeOnly: true access: type: string readOnly: true refresh: type: string readOnly: true required: - access - password - refresh - username TokenRefresh: type: object properties: access: type: string readOnly: true refresh: type: string required: - access - refresh securitySchemes: jwtAuth: type: http scheme: bearer bearerFormat: JWT