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.

482 lines
10 KiB

2 years ago
{
"openapi": "3.1.0",
2 years ago
"info": {
"title": "notes",
"version": "4.8.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": [],
2 years ago
"components": {
"schemas": {
"Capabilities": {
"type": "object",
"required": ["notes"],
"properties": {
"notes": {
"type": "object",
"properties": {
"api_version": {
"type": "array",
"items": {
"type": "string"
}
},
"version": {
"type": "string"
}
}
}
}
},
"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",
"rich"
2 years ago
]
}
}
}
},
"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",
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",
"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",
"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",
"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"
}
},
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",
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "string"
}
}
}
}
}
}
},
"/index.php/apps/notes/api/v1/settings": {
2 years ago
"get": {
"operationId": "get-settings",
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Settings"
2 years ago
}
}
}
}
}
},
"put": {
"operationId": "update-settings",
"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
}
}
}
}
}
}
}
}
}