A framework for building convergent cross-platform Nextcloud clients using Flutter.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

487 lines
10 KiB

2 years ago
{
"openapi": "3.1.0",
2 years ago
"info": {
"title": "Notes",
"version": "4.6.0",
2 years ago
"description": "Distraction-free notes and writing",
"license": {
"name": "agpl",
"identifier": "AGPL-3.0"
2 years ago
}
},
"servers": [
{
"url": "https://{hostname}:{port}",
2 years ago
"variables": {
"hostname": {
"default": "localhost"
},
"port": {
"default": "8080"
}
}
}
],
"security": [
{
"basic_auth": []
}
],
"tags": [
{
"name": "notes"
}
],
2 years ago
"components": {
"schemas": {
"OCSMeta": {
"type": "object",
"required": [
"status",
"statuscode"
],
"properties": {
"status": {
"type": "string"
},
"statuscode": {
"type": "integer"
},
"message": {
"type": "string"
},
"totalitems": {
"type": "string"
},
"itemsperpage": {
"type": "string"
}
}
},
"EmptyOCS": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "array"
}
}
}
}
},
"Note": {
2 years ago
"type": "object",
"required": [
"id",
"etag",
"readonly",
"content",
"title",
"category",
"favorite",
"modified",
"error",
"errorType"
],
2 years ago
"properties": {
"id": {
"type": "integer"
},
"etag": {
"type": "string"
},
"readonly": {
"type": "boolean"
},
"content": {
"type": "string"
},
"title": {
"type": "string"
},
"category": {
"type": "string"
},
"favorite": {
"type": "boolean"
},
"modified": {
"type": "integer"
},
"error": {
"type": "boolean"
},
"errorType": {
"type": "string"
}
}
},
"Settings": {
2 years ago
"type": "object",
"required": [
"notesPath",
"fileSuffix",
"noteMode"
],
2 years ago
"properties": {
"notesPath": {
"type": "string"
},
"fileSuffix": {
"type": "string"
},
"noteMode": {
"type": "string",
"enum": [
"edit",
"preview"
]
}
}
}
},
"securitySchemes": {
"basic_auth": {
"type": "http",
"scheme": "basic"
2 years ago
}
}
},
"paths": {
"/index.php/apps/notes/api/v1/notes": {
2 years ago
"get": {
"operationId": "get-notes",
"tags": [
"notes"
],
2 years ago
"parameters": [
{
"name": "category",
"in": "query",
"required": false,
2 years ago
"schema": {
"type": "string"
}
},
{
"name": "exclude",
"in": "query",
"required": false,
2 years ago
"schema": {
"type": "string",
"default": ""
2 years ago
}
},
{
"name": "pruneBefore",
"in": "query",
"required": false,
2 years ago
"schema": {
"type": "integer",
"default": 0
}
},
{
"name": "chunkSize",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 0
}
},
{
"name": "chunkCursor",
"in": "query",
"required": false,
"schema": {
"type": "string"
2 years ago
}
},
{
"name": "If-None-Match",
"in": "header",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Note"
2 years ago
}
}
}
}
}
}
},
"post": {
"operationId": "create-note",
"tags": [
"notes"
],
"parameters": [
{
"name": "category",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": ""
}
},
{
"name": "title",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": ""
}
},
{
"name": "content",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": ""
}
},
{
"name": "modified",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 0
}
},
{
"name": "favorite",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 0
2 years ago
}
}
],
2 years ago
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Note"
2 years ago
}
}
}
}
}
}
},
"/index.php/apps/notes/api/v1/notes/{id}": {
2 years ago
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
}
],
"get": {
"operationId": "get-note",
"tags": [
"notes"
],
"parameters": [
{
"name": "exclude",
"in": "query",
"required": false,
"schema": {
"type": "string",
"default": ""
}
},
{
"name": "If-None-Match",
"in": "header",
"schema": {
"type": "string"
}
}
],
2 years ago
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Note"
2 years ago
}
}
}
}
}
},
"put": {
"operationId": "update-note",
"tags": [
"notes"
],
2 years ago
"parameters": [
{
"name": "content",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "modified",
"in": "query",
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "title",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "category",
"in": "query",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "favorite",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 0
}
},
2 years ago
{
"name": "If-Match",
"in": "header",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Note"
2 years ago
}
}
}
}
}
},
"delete": {
"operationId": "delete-note",
"tags": [
"notes"
],
2 years ago
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
}
}
},
"/index.php/apps/notes/api/v1/settings": {
2 years ago
"get": {
"operationId": "get-settings",
"tags": [
"notes"
],
2 years ago
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Settings"
2 years ago
}
}
}
}
}
},
"put": {
"operationId": "update-settings",
"tags": [
"notes"
],
2 years ago
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Settings"
2 years ago
}
}
}
},
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Settings"
2 years ago
}
}
}
}
}
}
}
}
}