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.

857 lines
18 KiB

3 years ago
{
"openapi": "3.1.0",
3 years ago
"info": {
"title": "News",
"version": "21.2.0",
3 years ago
"description": "An RSS/Atom feed reader",
"license": {
"name": "agpl",
"identifier": "AGPL-3.0"
3 years ago
}
},
"servers": [
{
"url": "https://{hostname}:{port}",
3 years ago
"variables": {
"hostname": {
"default": "localhost"
},
"port": {
"default": "8080"
}
}
}
],
"security": [
{
"basic_auth": []
}
],
"tags": [],
3 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"
}
}
}
}
},
"ListFeeds": {
3 years ago
"type": "object",
"required": [
"feeds"
],
3 years ago
"properties": {
"starredCount": {
"type": "integer"
},
"newestItemId": {
"type": "integer"
},
"feeds": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Feed"
3 years ago
}
}
}
},
"Feed": {
3 years ago
"type": "object",
"required": [
"id",
"url",
"title",
"added",
"ordering",
"pinned",
"updateErrorCount",
"items"
],
3 years ago
"properties": {
"id": {
"type": "integer"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"faviconLink": {
"type": "string"
},
"added": {
"type": "integer"
},
"folderId": {
"type": "integer"
},
"unreadCount": {
"type": "integer"
},
"ordering": {
"type": "integer"
},
"link": {
"type": "string"
},
"pinned": {
"type": "boolean"
},
"updateErrorCount": {
"type": "integer"
},
"lastUpdateError": {
"type": "string"
},
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Article"
3 years ago
}
}
}
},
"Article": {
3 years ago
"type": "object",
"required": [
"id",
"guid",
"guidHash",
"title",
"pubDate",
"body",
"feedId",
"unread",
"starred",
"lastModified",
"rtl",
"fingerprint",
"contentHash"
],
3 years ago
"properties": {
"id": {
"type": "integer"
},
"guid": {
"type": "string"
},
"guidHash": {
"type": "string"
},
"url": {
"type": "string"
},
"title": {
"type": "string"
},
"author": {
"type": "string"
},
"pubDate": {
"type": "integer"
},
"updatedDate": {
"type": "integer"
},
"body": {
"type": "string"
},
"enclosureMime": {
"type": "string"
},
"enclosureLink": {
"type": "string"
},
"mediaThumbnail": {
"type": "string"
},
"mediaDescription": {
"type": "string"
},
"feedId": {
"type": "integer"
},
"unread": {
"type": "boolean"
},
"starred": {
"type": "boolean"
},
"lastModified": {
"type": "integer"
},
"rtl": {
"type": "boolean"
},
"fingerprint": {
"type": "string"
},
"contentHash": {
"type": "string"
}
}
},
"ListArticles": {
3 years ago
"type": "object",
"required": [
"items"
],
3 years ago
"properties": {
"items": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Article"
3 years ago
}
}
}
},
"ListFolders": {
3 years ago
"type": "object",
"required": [
"folders"
],
3 years ago
"properties": {
"folders": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Folder"
3 years ago
}
}
}
},
"Folder": {
3 years ago
"type": "object",
"required": [
"id",
"name",
"opened",
"feeds"
],
3 years ago
"properties": {
"id": {
"type": "integer"
},
"name": {
"type": "string"
},
"opened": {
"type": "boolean"
},
"feeds": {
"description": "This seems to be broken. In testing it is always empty",
"deprecated": true,
"type": "array",
"items": {
"$ref": "#/components/schemas/Feed"
3 years ago
}
}
}
},
"SupportedAPIVersions": {
"type": "object",
"properties": {
"apiLevels": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
},
"securitySchemes": {
"basic_auth": {
"type": "http",
"scheme": "basic"
3 years ago
}
}
},
"paths": {
"/index.php/apps/news/api": {
"get": {
"operationId": "get-supported-api-versions",
"tags": [
"news"
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/SupportedAPIVersions"
}
}
}
}
}
}
},
"/index.php/apps/news/api/v1-3/folders": {
3 years ago
"get": {
"operationId": "list-folders",
"tags": [
"news"
],
3 years ago
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ListFolders"
3 years ago
}
}
}
}
}
},
"post": {
"operationId": "create-folder",
"tags": [
"news"
],
"parameters": [
{
"name": "name",
"in": "query",
"required": true,
"schema": {
"type": "string"
3 years ago
}
}
],
3 years ago
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ListFolders"
3 years ago
}
}
}
}
}
}
},
"/index.php/apps/news/api/v1-3/folders/{folderId}": {
3 years ago
"parameters": [
{
"name": "folderId",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
}
],
"put": {
"operationId": "rename-folder",
"tags": [
"news"
],
"parameters": [
{
"name": "name",
"in": "query",
"required": true,
"schema": {
"type": "string"
3 years ago
}
}
],
3 years ago
"responses": {
"200": {
"description": ""
}
}
},
"delete": {
"operationId": "delete-folder",
"tags": [
"news"
],
3 years ago
"responses": {
"200": {
"description": ""
}
}
}
},
"/index.php/apps/news/api/v1-3/folders/{folderId}/read": {
3 years ago
"parameters": [
{
"name": "folderId",
"in": "path",
"description": "ID of the folder",
3 years ago
"required": true,
"schema": {
"type": "integer"
}
}
],
"post": {
3 years ago
"operationId": "mark-folder-as-read",
"tags": [
"news"
],
"parameters": [
{
"name": "newestItemId",
"in": "query",
"description": "The newest read item",
"required": true,
"schema": {
"type": "integer"
3 years ago
}
}
],
3 years ago
"responses": {
"200": {
"description": ""
}
}
}
},
"/index.php/apps/news/api/v1-3/feeds": {
3 years ago
"get": {
"operationId": "list-feeds",
"tags": [
"news"
],
3 years ago
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ListFeeds"
3 years ago
}
}
}
}
}
},
"post": {
"operationId": "add-feed",
"tags": [
"news"
],
"parameters": [
{
"name": "url",
"in": "query",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "folderId",
"in": "query",
"required": false,
"schema": {
"type": "integer"
3 years ago
}
}
],
3 years ago
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ListFeeds"
3 years ago
}
}
}
}
}
}
},
"/index.php/apps/news/api/v1-3/feeds/{feedId}": {
3 years ago
"parameters": [
{
"name": "feedId",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
}
],
"delete": {
"operationId": "delete-feed",
"tags": [
"news"
],
3 years ago
"responses": {
"200": {
"description": ""
}
}
}
},
"/index.php/apps/news/api/v1-3/feeds/{feedId}/move": {
3 years ago
"parameters": [
{
"name": "feedId",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
}
],
"post": {
3 years ago
"operationId": "move-feed",
"tags": [
"news"
],
"parameters": [
{
"name": "folderId",
"in": "query",
"required": false,
"schema": {
"type": "integer"
3 years ago
}
}
],
3 years ago
"responses": {
"200": {
"description": ""
}
}
}
},
"/index.php/apps/news/api/v1-3/feeds/{feedId}/rename": {
3 years ago
"parameters": [
{
"name": "feedId",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
}
],
"post": {
3 years ago
"operationId": "rename-feed",
"tags": [
"news"
],
"parameters": [
{
"name": "feedTitle",
"in": "query",
"required": true,
"schema": {
"type": "string"
3 years ago
}
}
],
3 years ago
"responses": {
"200": {
"description": ""
}
}
}
},
"/index.php/apps/news/api/v1-3/feeds/{feedId}/read": {
3 years ago
"parameters": [
{
"name": "feedId",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
}
],
"post": {
3 years ago
"operationId": "mark-feed-as-read",
"tags": [
"news"
],
"parameters": [
{
"name": "newestItemId",
"in": "query",
"required": true,
"schema": {
"type": "integer"
3 years ago
}
}
],
3 years ago
"responses": {
"200": {
"description": ""
}
}
}
},
"/index.php/apps/news/api/v1-3/items": {
3 years ago
"get": {
"operationId": "list-articles",
"tags": [
"news"
],
"parameters": [
{
"name": "type",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 3
}
},
{
"name": "id",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 0
}
},
{
"name": "getRead",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 1
}
},
{
"name": "batchSize",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": -1
}
},
{
"name": "offset",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 0
}
},
{
"name": "oldestFirst",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 0
}
}
],
3 years ago
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ListArticles"
3 years ago
}
}
}
}
}
}
},
"/index.php/apps/news/api/v1-3/items/updated": {
3 years ago
"get": {
"operationId": "list-updated-articles",
"tags": [
"news"
],
"parameters": [
{
"name": "type",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 3
}
},
{
"name": "id",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 0
}
},
{
"name": "lastModified",
"in": "query",
"required": false,
"schema": {
"type": "integer",
"default": 0
}
}
],
3 years ago
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ListArticles"
3 years ago
}
}
}
}
}
}
},
"/index.php/apps/news/api/v1-3/items/{itemId}/read": {
3 years ago
"parameters": [
{
"name": "itemId",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
}
],
"post": {
3 years ago
"operationId": "mark-article-as-read",
"tags": [
"news"
],
3 years ago
"responses": {
"200": {
"description": ""
}
}
}
},
"/index.php/apps/news/api/v1-3/items/{itemId}/unread": {
3 years ago
"parameters": [
{
"name": "itemId",
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
}
],
"post": {
3 years ago
"operationId": "mark-article-as-unread",
"tags": [
"news"
],
3 years ago
"responses": {
"200": {
"description": ""
}
}
}
},
"/index.php/apps/news/api/v1-3/items/{itemId}/star": {
3 years ago
"parameters": [
{
"name": "itemId",
3 years ago
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
}
],
"post": {
3 years ago
"operationId": "star-article",
"tags": [
"news"
],
3 years ago
"responses": {
"200": {
"description": ""
}
}
}
},
"/index.php/apps/news/api/v1-3/items/{itemId}/unstar": {
3 years ago
"parameters": [
{
"name": "itemId",
3 years ago
"in": "path",
"required": true,
"schema": {
"type": "integer"
}
}
],
"post": {
3 years ago
"operationId": "unstar-article",
"tags": [
"news"
],
3 years ago
"responses": {
"200": {
"description": ""
}
}
}
}
}
}