diff --git a/src/etapi/etapi.openapi.yaml b/src/etapi/etapi.openapi.yaml index 83826042c..974acbdfe 100644 --- a/src/etapi/etapi.openapi.yaml +++ b/src/etapi/etapi.openapi.yaml @@ -318,29 +318,7 @@ paths: application/json; charset=utf-8: schema: $ref: '#/components/schemas/Error' - /branches/{branchId}: - parameters: - - name: branchId - in: path - required: true - schema: - $ref: '#/components/schemas/EntityId' - get: - description: Returns a branch identified by its ID - operationId: getBranchById - responses: - '200': - description: branch response - content: - application/json; charset=utf-8: - schema: - $ref: '#/components/schemas/Branch' - default: - description: unexpected error - content: - application/json; charset=utf-8: - schema: - $ref: '#/components/schemas/Error' + /branches: post: description: > Create a branch (clone a note to a different location in the tree). @@ -372,6 +350,29 @@ paths: application/json; charset=utf-8: schema: $ref: '#/components/schemas/Error' + /branches/{branchId}: + parameters: + - name: branchId + in: path + required: true + schema: + $ref: '#/components/schemas/EntityId' + get: + description: Returns a branch identified by its ID + operationId: getBranchById + responses: + '200': + description: branch response + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Branch' + default: + description: unexpected error + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Error' patch: description: patch a branch identified by the branchId with changes in the body operationId: patchBranchById @@ -408,6 +409,29 @@ paths: application/json; charset=utf-8: schema: $ref: '#/components/schemas/Error' + /attributes: + post: + description: create an attribute for a given note + operationId: postAttribute + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/Attribute' + responses: + '201': + description: attribute created + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Attribute' + default: + description: unexpected error + content: + application/json; charset=utf-8: + schema: + $ref: '#/components/schemas/Error' /attributes/{attributeId}: parameters: - name: attributeId @@ -431,28 +455,6 @@ paths: application/json; charset=utf-8: schema: $ref: '#/components/schemas/Error' - post: - description: create an attribute for a given note - operationId: postAttribute - requestBody: - required: true - content: - application/json: - schema: - $ref: '#/components/schemas/Attribute' - responses: - '201': - description: attribute created - content: - application/json; charset=utf-8: - schema: - $ref: '#/components/schemas/Attribute' - default: - description: unexpected error - content: - application/json; charset=utf-8: - schema: - $ref: '#/components/schemas/Error' patch: description: patch a attribute identified by the attributeId with changes in the body operationId: patchAttributeById