Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
Omit attributeId/branchId path params from postAttribute/postBranch in etapi.openapi.yaml
mm21ad0b98e2a18b
diff --git a/src/etapi/etapi.openapi.yaml b/src/etapi/etapi.openapi.yamlindex 83826042c8..974acbdfe3 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 bodyoperationId: patchBranchById@@ -408,19 +409,19 @@ paths:application/json; charset=utf-8:schema:$ref: '#/components/schemas/Error'- /attributes/{attributeId}:- parameters:- - name: attributeId- in: path+ /attributes:+ post:+ description: create an attribute for a given note+ operationId: postAttribute+ requestBody:required: true- schema:- $ref: '#/components/schemas/EntityId'- get:- description: Returns an attribute identified by its ID- operationId: getAttributeById+ content:+ application/json:+ schema:+ $ref: '#/components/schemas/Attribute'responses:- '200':- description: attribute response+ '201':+ description: attribute createdcontent:application/json; charset=utf-8:schema:@@ -431,18 +432,19 @@ paths:application/json; charset=utf-8:schema:$ref: '#/components/schemas/Error'- post:- description: create an attribute for a given note- operationId: postAttribute- requestBody:+ /attributes/{attributeId}:+ parameters:+ - name: attributeId+ in: pathrequired: true- content:- application/json:- schema:- $ref: '#/components/schemas/Attribute'+ schema:+ $ref: '#/components/schemas/EntityId'+ get:+ description: Returns an attribute identified by its ID+ operationId: getAttributeByIdresponses:- '201':- description: attribute created+ '200':+ description: attribute responsecontent:application/json; charset=utf-8:schema: