Verified Commit c40ba8a4 authored by Jakob Moser's avatar Jakob Moser
Browse files

Specify PATCH /todos/-/items

parent a4b21620
Loading
Loading
Loading
Loading
+40 −0
Changes for portal/static/docs/api/v0/openapi-spec.yaml: 40 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -157,6 +157,46 @@ paths:

                For more deliberations, see [GET `/agenda/-/items`](#operation/getTheAgendaItems), which works more or less in the same way.
        patch:
            requestBody:
                required: true
                content:
                    application/json:
                        schema:
                            type: array
                            items:
                                $ref: "#/components/schemas/Task"
                        examples:
                            minimal_patch:
                                value:
                                    taiga:
                                        id: 632
                                        status: 42
                                        version: 1
            responses:
                "200":
                    content:
                        application/json:
                            schema:
                                type: array
                                items:
                                    $ref: "#/components/schemas/Task"
                            examples:
                                a_shorter_todo_list:
                                    $ref: "#/components/examples/a_shorter_todo_list"
                    description: |-
                        All to do items (including the updated ones), just as if someone made a GET request.
                "400":
                    $ref: "#/components/responses/BadRequestError"
                "401":
                    $ref: "#/components/responses/UnauthorizedError"
            operationId: patchTheTodoItems
            summary: Change todos
            security:
                - secretBearerAuth: []
            description: |
                This changes the status of the specified tasks currently on the to do list sourced from Taiga.

                For more details, see [PATCH `/agenda/-/items`](#operation/patchTheAgendaItems), which works in the same way.
    /version:
        summary: Path used to get details about the version of this application.
        description: ""