mirror of
https://github.com/zadam/trilium.git
synced 2025-01-15 19:51:57 +08:00
Omit attributeId/branchId path params from postAttribute/postBranch in etapi.openapi.yaml
This commit is contained in:
parent
4aeecfdfa9
commit
ad0b98e2a1
1 changed files with 47 additions and 45 deletions
|
@ -318,29 +318,7 @@ paths:
|
||||||
application/json; charset=utf-8:
|
application/json; charset=utf-8:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/Error'
|
$ref: '#/components/schemas/Error'
|
||||||
/branches/{branchId}:
|
/branches:
|
||||||
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'
|
|
||||||
post:
|
post:
|
||||||
description: >
|
description: >
|
||||||
Create a branch (clone a note to a different location in the tree).
|
Create a branch (clone a note to a different location in the tree).
|
||||||
|
@ -372,6 +350,29 @@ paths:
|
||||||
application/json; charset=utf-8:
|
application/json; charset=utf-8:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/Error'
|
$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:
|
patch:
|
||||||
description: patch a branch identified by the branchId with changes in the body
|
description: patch a branch identified by the branchId with changes in the body
|
||||||
operationId: patchBranchById
|
operationId: patchBranchById
|
||||||
|
@ -408,6 +409,29 @@ paths:
|
||||||
application/json; charset=utf-8:
|
application/json; charset=utf-8:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/Error'
|
$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}:
|
/attributes/{attributeId}:
|
||||||
parameters:
|
parameters:
|
||||||
- name: attributeId
|
- name: attributeId
|
||||||
|
@ -431,28 +455,6 @@ paths:
|
||||||
application/json; charset=utf-8:
|
application/json; charset=utf-8:
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/Error'
|
$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:
|
patch:
|
||||||
description: patch a attribute identified by the attributeId with changes in the body
|
description: patch a attribute identified by the attributeId with changes in the body
|
||||||
operationId: patchAttributeById
|
operationId: patchAttributeById
|
||||||
|
|
Loading…
Reference in a new issue