mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 05:28:59 +01:00 
			
		
		
		
	Merge pull request #3909 from mm21/etapi-generated-client
Enable generated etapi client
This commit is contained in:
		
						commit
						5676ff9b2e
					
				@ -31,7 +31,7 @@ paths:
 | 
				
			|||||||
        '201':
 | 
					        '201':
 | 
				
			||||||
          description: note created
 | 
					          description: note created
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                properties:
 | 
					                properties:
 | 
				
			||||||
                  note:
 | 
					                  note:
 | 
				
			||||||
@ -43,7 +43,7 @@ paths:
 | 
				
			|||||||
        default:
 | 
					        default:
 | 
				
			||||||
          description: unexpected error
 | 
					          description: unexpected error
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Error'
 | 
					                $ref: '#/components/schemas/Error'
 | 
				
			||||||
  /notes:
 | 
					  /notes:
 | 
				
			||||||
@ -163,13 +163,13 @@ paths:
 | 
				
			|||||||
        '200':
 | 
					        '200':
 | 
				
			||||||
          description: search response
 | 
					          description: search response
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/SearchResponse'
 | 
					                $ref: '#/components/schemas/SearchResponse'
 | 
				
			||||||
        default:
 | 
					        default:
 | 
				
			||||||
          description: unexpected error
 | 
					          description: unexpected error
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Error'
 | 
					                $ref: '#/components/schemas/Error'
 | 
				
			||||||
  /notes/{noteId}:
 | 
					  /notes/{noteId}:
 | 
				
			||||||
@ -186,13 +186,13 @@ paths:
 | 
				
			|||||||
        '200':
 | 
					        '200':
 | 
				
			||||||
          description: note response
 | 
					          description: note response
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Note'
 | 
					                $ref: '#/components/schemas/Note'
 | 
				
			||||||
        default:
 | 
					        default:
 | 
				
			||||||
          description: unexpected error
 | 
					          description: unexpected error
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Error'
 | 
					                $ref: '#/components/schemas/Error'
 | 
				
			||||||
    patch:
 | 
					    patch:
 | 
				
			||||||
@ -208,13 +208,13 @@ paths:
 | 
				
			|||||||
        '200':
 | 
					        '200':
 | 
				
			||||||
          description: note updated
 | 
					          description: note updated
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Note'
 | 
					                $ref: '#/components/schemas/Note'
 | 
				
			||||||
        default:
 | 
					        default:
 | 
				
			||||||
          description: unexpected error
 | 
					          description: unexpected error
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Error'
 | 
					                $ref: '#/components/schemas/Error'
 | 
				
			||||||
    delete:
 | 
					    delete:
 | 
				
			||||||
@ -226,7 +226,7 @@ paths:
 | 
				
			|||||||
        default:
 | 
					        default:
 | 
				
			||||||
          description: unexpected error
 | 
					          description: unexpected error
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Error'
 | 
					                $ref: '#/components/schemas/Error'
 | 
				
			||||||
  /notes/{noteId}/content:
 | 
					  /notes/{noteId}/content:
 | 
				
			||||||
@ -288,7 +288,7 @@ paths:
 | 
				
			|||||||
        default:
 | 
					        default:
 | 
				
			||||||
          description: unexpected error
 | 
					          description: unexpected error
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Error'
 | 
					                $ref: '#/components/schemas/Error'
 | 
				
			||||||
  /notes/{noteId}/note-revision:
 | 
					  /notes/{noteId}/note-revision:
 | 
				
			||||||
@ -315,32 +315,10 @@ paths:
 | 
				
			|||||||
        default:
 | 
					        default:
 | 
				
			||||||
          description: unexpected error
 | 
					          description: unexpected error
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            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:
 | 
					 | 
				
			||||||
              schema:
 | 
					 | 
				
			||||||
                $ref: '#/components/schemas/Branch'
 | 
					 | 
				
			||||||
        default:
 | 
					 | 
				
			||||||
          description: unexpected error
 | 
					 | 
				
			||||||
          content:
 | 
					 | 
				
			||||||
            application/json:
 | 
					 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Error'
 | 
					                $ref: '#/components/schemas/Error'
 | 
				
			||||||
 | 
					  /branches:
 | 
				
			||||||
    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).
 | 
				
			||||||
@ -357,19 +335,42 @@ paths:
 | 
				
			|||||||
        '200':
 | 
					        '200':
 | 
				
			||||||
          description: branch updated (branch between parent note and child note already existed)
 | 
					          description: branch updated (branch between parent note and child note already existed)
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Branch'
 | 
					                $ref: '#/components/schemas/Branch'
 | 
				
			||||||
        '201':
 | 
					        '201':
 | 
				
			||||||
          description: branch created
 | 
					          description: branch created
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Branch'
 | 
					                $ref: '#/components/schemas/Branch'
 | 
				
			||||||
        default:
 | 
					        default:
 | 
				
			||||||
          description: unexpected error
 | 
					          description: unexpected error
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            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:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Error'
 | 
					                $ref: '#/components/schemas/Error'
 | 
				
			||||||
    patch:
 | 
					    patch:
 | 
				
			||||||
@ -385,13 +386,13 @@ paths:
 | 
				
			|||||||
        '200':
 | 
					        '200':
 | 
				
			||||||
          description: branch updated
 | 
					          description: branch updated
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Branch'
 | 
					                $ref: '#/components/schemas/Branch'
 | 
				
			||||||
        default:
 | 
					        default:
 | 
				
			||||||
          description: unexpected error
 | 
					          description: unexpected error
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Error'
 | 
					                $ref: '#/components/schemas/Error'
 | 
				
			||||||
    delete:
 | 
					    delete:
 | 
				
			||||||
@ -405,7 +406,30 @@ paths:
 | 
				
			|||||||
        default:
 | 
					        default:
 | 
				
			||||||
          description: unexpected error
 | 
					          description: unexpected error
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            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:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Error'
 | 
					                $ref: '#/components/schemas/Error'
 | 
				
			||||||
  /attributes/{attributeId}:
 | 
					  /attributes/{attributeId}:
 | 
				
			||||||
@ -422,35 +446,13 @@ paths:
 | 
				
			|||||||
        '200':
 | 
					        '200':
 | 
				
			||||||
          description: attribute response
 | 
					          description: attribute response
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Attribute'
 | 
					                $ref: '#/components/schemas/Attribute'
 | 
				
			||||||
        default:
 | 
					        default:
 | 
				
			||||||
          description: unexpected error
 | 
					          description: unexpected error
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            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:
 | 
					 | 
				
			||||||
              schema:
 | 
					 | 
				
			||||||
                $ref: '#/components/schemas/Attribute'
 | 
					 | 
				
			||||||
        default:
 | 
					 | 
				
			||||||
          description: unexpected error
 | 
					 | 
				
			||||||
          content:
 | 
					 | 
				
			||||||
            application/json:
 | 
					 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Error'
 | 
					                $ref: '#/components/schemas/Error'
 | 
				
			||||||
    patch:
 | 
					    patch:
 | 
				
			||||||
@ -466,13 +468,13 @@ paths:
 | 
				
			|||||||
        '200':
 | 
					        '200':
 | 
				
			||||||
          description: attribute updated
 | 
					          description: attribute updated
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Attribute'
 | 
					                $ref: '#/components/schemas/Attribute'
 | 
				
			||||||
        default:
 | 
					        default:
 | 
				
			||||||
          description: unexpected error
 | 
					          description: unexpected error
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Error'
 | 
					                $ref: '#/components/schemas/Error'
 | 
				
			||||||
    delete:
 | 
					    delete:
 | 
				
			||||||
@ -484,7 +486,7 @@ paths:
 | 
				
			|||||||
        default:
 | 
					        default:
 | 
				
			||||||
          description: unexpected error
 | 
					          description: unexpected error
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Error'
 | 
					                $ref: '#/components/schemas/Error'
 | 
				
			||||||
  /refresh-note-ordering/{parentNoteId}:
 | 
					  /refresh-note-ordering/{parentNoteId}:
 | 
				
			||||||
@ -506,7 +508,7 @@ paths:
 | 
				
			|||||||
        default:
 | 
					        default:
 | 
				
			||||||
          description: unexpected error
 | 
					          description: unexpected error
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Error'
 | 
					                $ref: '#/components/schemas/Error'
 | 
				
			||||||
  /inbox/{date}:
 | 
					  /inbox/{date}:
 | 
				
			||||||
@ -527,13 +529,13 @@ paths:
 | 
				
			|||||||
        '200':
 | 
					        '200':
 | 
				
			||||||
          description: inbox note
 | 
					          description: inbox note
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Note'
 | 
					                $ref: '#/components/schemas/Note'
 | 
				
			||||||
        default:
 | 
					        default:
 | 
				
			||||||
          description: unexpected error
 | 
					          description: unexpected error
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Error'
 | 
					                $ref: '#/components/schemas/Error'
 | 
				
			||||||
  /calendar/days/{date}:
 | 
					  /calendar/days/{date}:
 | 
				
			||||||
@ -552,13 +554,13 @@ paths:
 | 
				
			|||||||
        '200':
 | 
					        '200':
 | 
				
			||||||
          description: day note
 | 
					          description: day note
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Note'
 | 
					                $ref: '#/components/schemas/Note'
 | 
				
			||||||
        default:
 | 
					        default:
 | 
				
			||||||
          description: unexpected error
 | 
					          description: unexpected error
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Error'
 | 
					                $ref: '#/components/schemas/Error'
 | 
				
			||||||
  /calendar/weeks/{date}:
 | 
					  /calendar/weeks/{date}:
 | 
				
			||||||
@ -577,13 +579,13 @@ paths:
 | 
				
			|||||||
        '200':
 | 
					        '200':
 | 
				
			||||||
          description: week note
 | 
					          description: week note
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Note'
 | 
					                $ref: '#/components/schemas/Note'
 | 
				
			||||||
        default:
 | 
					        default:
 | 
				
			||||||
          description: unexpected error
 | 
					          description: unexpected error
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Error'
 | 
					                $ref: '#/components/schemas/Error'
 | 
				
			||||||
  /calendar/months/{month}:
 | 
					  /calendar/months/{month}:
 | 
				
			||||||
@ -602,13 +604,13 @@ paths:
 | 
				
			|||||||
        '200':
 | 
					        '200':
 | 
				
			||||||
          description: month note
 | 
					          description: month note
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Note'
 | 
					                $ref: '#/components/schemas/Note'
 | 
				
			||||||
        default:
 | 
					        default:
 | 
				
			||||||
          description: unexpected error
 | 
					          description: unexpected error
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Error'
 | 
					                $ref: '#/components/schemas/Error'
 | 
				
			||||||
  /calendar/years/{year}:
 | 
					  /calendar/years/{year}:
 | 
				
			||||||
@ -627,13 +629,13 @@ paths:
 | 
				
			|||||||
        '200':
 | 
					        '200':
 | 
				
			||||||
          description: year note
 | 
					          description: year note
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Note'
 | 
					                $ref: '#/components/schemas/Note'
 | 
				
			||||||
        default:
 | 
					        default:
 | 
				
			||||||
          description: unexpected error
 | 
					          description: unexpected error
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Error'
 | 
					                $ref: '#/components/schemas/Error'
 | 
				
			||||||
  /auth/login:
 | 
					  /auth/login:
 | 
				
			||||||
@ -654,7 +656,7 @@ paths:
 | 
				
			|||||||
        '201':
 | 
					        '201':
 | 
				
			||||||
          description: auth token
 | 
					          description: auth token
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                properties:
 | 
					                properties:
 | 
				
			||||||
                  authToken:
 | 
					                  authToken:
 | 
				
			||||||
@ -665,7 +667,7 @@ paths:
 | 
				
			|||||||
        default:
 | 
					        default:
 | 
				
			||||||
          description: unexpected error
 | 
					          description: unexpected error
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Error'
 | 
					                $ref: '#/components/schemas/Error'
 | 
				
			||||||
  /auth/logout:
 | 
					  /auth/logout:
 | 
				
			||||||
@ -678,7 +680,7 @@ paths:
 | 
				
			|||||||
        default:
 | 
					        default:
 | 
				
			||||||
          description: unexpected error
 | 
					          description: unexpected error
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Error'
 | 
					                $ref: '#/components/schemas/Error'
 | 
				
			||||||
  /app-info:
 | 
					  /app-info:
 | 
				
			||||||
@ -689,13 +691,13 @@ paths:
 | 
				
			|||||||
        '200':
 | 
					        '200':
 | 
				
			||||||
          description: app info
 | 
					          description: app info
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/AppInfo'
 | 
					                $ref: '#/components/schemas/AppInfo'
 | 
				
			||||||
        default:
 | 
					        default:
 | 
				
			||||||
          description: unexpected error
 | 
					          description: unexpected error
 | 
				
			||||||
          content:
 | 
					          content:
 | 
				
			||||||
            application/json:
 | 
					            application/json; charset=utf-8:
 | 
				
			||||||
              schema:
 | 
					              schema:
 | 
				
			||||||
                $ref: '#/components/schemas/Error'
 | 
					                $ref: '#/components/schemas/Error'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -774,7 +776,7 @@ components:
 | 
				
			|||||||
          type: string
 | 
					          type: string
 | 
				
			||||||
        type:
 | 
					        type:
 | 
				
			||||||
          type: string
 | 
					          type: string
 | 
				
			||||||
          enum: [text, code, render, file, image, search, relationMap, book, noteMap, mermaid, webView, shortcut]
 | 
					          enum: [text, code, render, file, image, search, relationMap, book, noteMap, mermaid, webView, shortcut, doc, contentWidget, launcher]
 | 
				
			||||||
        mime:
 | 
					        mime:
 | 
				
			||||||
          type: string
 | 
					          type: string
 | 
				
			||||||
        isProtected:
 | 
					        isProtected:
 | 
				
			||||||
@ -810,9 +812,6 @@ components:
 | 
				
			|||||||
    Branch:
 | 
					    Branch:
 | 
				
			||||||
      type: object
 | 
					      type: object
 | 
				
			||||||
      description: Branch places the note into the tree, it represents the relationship between a parent note and child note
 | 
					      description: Branch places the note into the tree, it represents the relationship between a parent note and child note
 | 
				
			||||||
      required:
 | 
					 | 
				
			||||||
        - noteId
 | 
					 | 
				
			||||||
        - parentNoteId
 | 
					 | 
				
			||||||
      properties:
 | 
					      properties:
 | 
				
			||||||
        branchId:
 | 
					        branchId:
 | 
				
			||||||
          $ref: '#/components/schemas/EntityId'
 | 
					          $ref: '#/components/schemas/EntityId'
 | 
				
			||||||
@ -837,8 +836,6 @@ components:
 | 
				
			|||||||
    Attribute:
 | 
					    Attribute:
 | 
				
			||||||
      type: object
 | 
					      type: object
 | 
				
			||||||
      description: Attribute (Label, Relation) is a key-value record attached to a note.
 | 
					      description: Attribute (Label, Relation) is a key-value record attached to a note.
 | 
				
			||||||
      required:
 | 
					 | 
				
			||||||
        - noteId
 | 
					 | 
				
			||||||
      properties:
 | 
					      properties:
 | 
				
			||||||
        attributeId:
 | 
					        attributeId:
 | 
				
			||||||
          $ref: '#/components/schemas/EntityId'
 | 
					          $ref: '#/components/schemas/EntityId'
 | 
				
			||||||
@ -851,7 +848,7 @@ components:
 | 
				
			|||||||
          enum: [label, relation]
 | 
					          enum: [label, relation]
 | 
				
			||||||
        name:
 | 
					        name:
 | 
				
			||||||
          type: string
 | 
					          type: string
 | 
				
			||||||
          pattern: '^[\p{L}\p{N}_:]+'
 | 
					          pattern: '^[^\s]+'
 | 
				
			||||||
          example: shareCss
 | 
					          example: shareCss
 | 
				
			||||||
        value:
 | 
					        value:
 | 
				
			||||||
          type: string
 | 
					          type: string
 | 
				
			||||||
@ -881,7 +878,7 @@ components:
 | 
				
			|||||||
          description: debugging info on parsing the search query enabled with &debug=true parameter
 | 
					          description: debugging info on parsing the search query enabled with &debug=true parameter
 | 
				
			||||||
    EntityId:
 | 
					    EntityId:
 | 
				
			||||||
      type: string
 | 
					      type: string
 | 
				
			||||||
      pattern: '[a-zA-Z0-9]{4,32}'
 | 
					      pattern: '[a-zA-Z0-9_]{4,32}'
 | 
				
			||||||
      example: evnnmvHTCgIn
 | 
					      example: evnnmvHTCgIn
 | 
				
			||||||
    EntityIdList:
 | 
					    EntityIdList:
 | 
				
			||||||
      type: array
 | 
					      type: array
 | 
				
			||||||
@ -889,7 +886,7 @@ components:
 | 
				
			|||||||
        $ref: '#/components/schemas/EntityId'
 | 
					        $ref: '#/components/schemas/EntityId'
 | 
				
			||||||
    LocalDateTime:
 | 
					    LocalDateTime:
 | 
				
			||||||
      type: string
 | 
					      type: string
 | 
				
			||||||
      pattern: '[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}\+[0-9]{4}'
 | 
					      pattern: '[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}\.[0-9]{3}[\+\-][0-9]{4}'
 | 
				
			||||||
      example: 2021-12-31 20:18:11.939+0100
 | 
					      example: 2021-12-31 20:18:11.939+0100
 | 
				
			||||||
    UtcDateTime:
 | 
					    UtcDateTime:
 | 
				
			||||||
      type: string
 | 
					      type: string
 | 
				
			||||||
@ -897,10 +894,6 @@ components:
 | 
				
			|||||||
      example: 2021-12-31 19:18:11.939Z
 | 
					      example: 2021-12-31 19:18:11.939Z
 | 
				
			||||||
    AppInfo:
 | 
					    AppInfo:
 | 
				
			||||||
      type: object
 | 
					      type: object
 | 
				
			||||||
      required:
 | 
					 | 
				
			||||||
        - statu
 | 
					 | 
				
			||||||
        - code
 | 
					 | 
				
			||||||
        - message
 | 
					 | 
				
			||||||
      properties:
 | 
					      properties:
 | 
				
			||||||
        appVersion:
 | 
					        appVersion:
 | 
				
			||||||
          type: string
 | 
					          type: string
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user