openapi: 3.0.2 info: title: '' version: '' paths: /notes/: get: operationId: listNotes description: '' parameters: [] responses: '200': content: application/json: schema: type: array items: $ref: '#/components/schemas/Note' description: '' tags: - notes post: operationId: createNote description: '' parameters: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/Note' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/Note' multipart/form-data: schema: $ref: '#/components/schemas/Note' responses: '201': content: application/json: schema: $ref: '#/components/schemas/Note' description: '' tags: - notes /notes/{id}/: get: operationId: retrieveNote description: '' parameters: - name: id in: path required: true description: A unique integer value identifying this note. schema: type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/Note' description: '' tags: - notes put: operationId: updateNote description: '' parameters: - name: id in: path required: true description: A unique integer value identifying this note. schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/Note' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/Note' multipart/form-data: schema: $ref: '#/components/schemas/Note' responses: '200': content: application/json: schema: $ref: '#/components/schemas/Note' description: '' tags: - notes patch: operationId: partialUpdateNote description: '' parameters: - name: id in: path required: true description: A unique integer value identifying this note. schema: type: string requestBody: content: application/json: schema: $ref: '#/components/schemas/Note' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/Note' multipart/form-data: schema: $ref: '#/components/schemas/Note' responses: '200': content: application/json: schema: $ref: '#/components/schemas/Note' description: '' tags: - notes delete: operationId: destroyNote description: '' parameters: - name: id in: path required: true description: A unique integer value identifying this note. schema: type: string responses: '204': description: '' tags: - notes /users/: get: operationId: listUsers description: '' parameters: [] responses: '200': content: application/json: schema: type: array items: $ref: '#/components/schemas/User' description: '' tags: - users /users/{id}/: get: operationId: retrieveUser description: '' parameters: - name: id in: path required: true description: A unique integer value identifying this user. schema: type: string responses: '200': content: application/json: schema: $ref: '#/components/schemas/User' description: '' tags: - users /auth/login: post: operationId: createAuthToken description: '' parameters: [] requestBody: content: application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/AuthToken' multipart/form-data: schema: $ref: '#/components/schemas/AuthToken' application/json: schema: $ref: '#/components/schemas/AuthToken' responses: '201': content: application/json: schema: $ref: '#/components/schemas/AuthToken' description: '' tags: - auth /auth/register: post: operationId: createRegister description: Create a new user with a token parameters: [] requestBody: content: application/json: schema: $ref: '#/components/schemas/Register' application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/Register' multipart/form-data: schema: $ref: '#/components/schemas/Register' responses: '201': content: application/json: schema: $ref: '#/components/schemas/Register' description: '' tags: - auth /auth/change-password: put: operationId: updateChangePassword description: '' parameters: [] requestBody: content: application/json: schema: {} application/x-www-form-urlencoded: schema: {} multipart/form-data: schema: {} responses: '200': content: application/json: schema: {} description: '' tags: - auth /auth/logout: delete: operationId: destroyLogout description: Delete existing token parameters: [] responses: '204': description: '' tags: - auth components: schemas: Note: type: object properties: id: type: integer readOnly: true title: type: string maxLength: 100 content: type: string created: type: string format: date-time readOnly: true updated: type: string format: date-time readOnly: true owner: type: string readOnly: true required: - title User: type: object properties: id: type: integer readOnly: true username: type: string description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. pattern: ^[\w.@+-]+\z maxLength: 150 notes: type: array items: type: integer required: - username - notes AuthToken: type: object properties: username: type: string writeOnly: true password: type: string writeOnly: true token: type: string readOnly: true required: - username - password Register: type: object properties: email: type: string format: email username: type: string maxLength: 50 password: type: string maxLength: 50 required: - username - password