openapi: 3.2.0 info: title: Genialis base Rest Auth API version: 0.0.0 description: Backend of the Genialis platform. servers: - url: https://app.genialis.com description: Base URL declared by the provider in apis.yml (roadmap#122). tags: - name: rest-auth paths: /rest-auth/login/: post: operationId: rest_auth_login_create description: Attempt to perform automatic login. tags: - rest-auth requestBody: content: application/json: schema: $ref: '#/components/schemas/ApiLogin' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/ApiLogin' multipart/form-data: schema: $ref: '#/components/schemas/ApiLogin' required: true security: - cookieAuth: [] - {} responses: '204': description: No response body /rest-auth/logout/: post: operationId: rest_auth_logout_create description: 'Calls Django logout method and delete the Token object assigned to the current User object. Accepts/Returns nothing.' tags: - rest-auth security: - cookieAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/RestAuthDetail' description: '' /rest-auth/password/change/: post: operationId: rest_auth_password_change_create description: 'Calls Django Auth SetPasswordForm save method. Accepts the following POST parameters: new_password1, new_password2 Returns the success/fail message.' tags: - rest-auth requestBody: content: application/json: schema: $ref: '#/components/schemas/PasswordChange' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/PasswordChange' multipart/form-data: schema: $ref: '#/components/schemas/PasswordChange' required: true security: - cookieAuth: [] responses: '200': content: application/json: schema: $ref: '#/components/schemas/RestAuthDetail' description: '' /rest-auth/password/reset/: post: operationId: rest_auth_password_reset_create description: 'Calls Django Auth PasswordResetForm save method. Accepts the following POST parameters: email Returns the success/fail message.' tags: - rest-auth requestBody: content: application/json: schema: $ref: '#/components/schemas/PasswordReset' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/PasswordReset' multipart/form-data: schema: $ref: '#/components/schemas/PasswordReset' required: true security: - cookieAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/RestAuthDetail' description: '' /rest-auth/password/reset/confirm/: post: operationId: rest_auth_password_reset_confirm_create description: "Password reset e-mail link is confirmed, therefore\nthis resets the user's password.\n\nAccepts the following POST parameters: token, uid,\n new_password1, new_password2\nReturns the success/fail message." tags: - rest-auth requestBody: content: application/json: schema: $ref: '#/components/schemas/PasswordResetConfirm' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/PasswordResetConfirm' multipart/form-data: schema: $ref: '#/components/schemas/PasswordResetConfirm' required: true security: - cookieAuth: [] - {} responses: '200': content: application/json: schema: $ref: '#/components/schemas/RestAuthDetail' description: '' /rest-auth/user/: get: operationId: rest_auth_user_retrieve description: 'Reads and updates UserModel fields Accepts GET, PUT, PATCH methods. Default accepted fields: username, first_name, last_name Default display fields: pk, username, email, first_name, last_name Read-only fields: pk, email Returns UserModel fields.' tags: - rest-auth security: - cookieAuth: [] responses: '200': content: application/json: schema: $ref: '#/components/schemas/UserDetails' description: '' put: operationId: rest_auth_user_update description: 'Reads and updates UserModel fields Accepts GET, PUT, PATCH methods. Default accepted fields: username, first_name, last_name Default display fields: pk, username, email, first_name, last_name Read-only fields: pk, email Returns UserModel fields.' tags: - rest-auth requestBody: content: application/json: schema: $ref: '#/components/schemas/UserDetails' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/UserDetails' multipart/form-data: schema: $ref: '#/components/schemas/UserDetails' required: true security: - cookieAuth: [] responses: '200': content: application/json: schema: $ref: '#/components/schemas/UserDetails' description: '' patch: operationId: rest_auth_user_partial_update description: 'Reads and updates UserModel fields Accepts GET, PUT, PATCH methods. Default accepted fields: username, first_name, last_name Default display fields: pk, username, email, first_name, last_name Read-only fields: pk, email Returns UserModel fields.' tags: - rest-auth requestBody: content: application/json: schema: $ref: '#/components/schemas/PatchedUserDetails' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/PatchedUserDetails' multipart/form-data: schema: $ref: '#/components/schemas/PatchedUserDetails' security: - cookieAuth: [] responses: '200': content: application/json: schema: $ref: '#/components/schemas/UserDetails' description: '' components: schemas: PasswordReset: type: object description: Serializer for requesting a password reset e-mail. properties: email: type: string format: email required: - email UserDetails: type: object description: User model w/o password properties: pk: type: integer readOnly: true title: ID username: type: string description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. pattern: ^[\w.@+-]+$ maxLength: 150 email: type: string format: email readOnly: true first_name: type: string maxLength: 150 last_name: type: string maxLength: 150 required: - email - pk - username ApiLogin: type: object description: Deserializer for login credentials. properties: email: type: string format: email password: type: string required: - email - password PasswordChange: type: object properties: new_password1: type: string maxLength: 128 new_password2: type: string maxLength: 128 required: - new_password1 - new_password2 RestAuthDetail: type: object properties: detail: type: string readOnly: true required: - detail PatchedUserDetails: type: object description: User model w/o password properties: pk: type: integer readOnly: true title: ID username: type: string description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. pattern: ^[\w.@+-]+$ maxLength: 150 email: type: string format: email readOnly: true first_name: type: string maxLength: 150 last_name: type: string maxLength: 150 PasswordResetConfirm: type: object description: Serializer for confirming a password reset attempt. properties: new_password1: type: string maxLength: 128 new_password2: type: string maxLength: 128 uid: type: string token: type: string required: - new_password1 - new_password2 - token - uid securitySchemes: cookieAuth: type: apiKey in: cookie name: sessionid