Browse Source

feat(tool,nextcloud): Generate specs with all status codes

Signed-off-by: jld3103 <jld3103yt@gmail.com>
pull/715/head
jld3103 1 year ago
parent
commit
71581c6f3a
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 1178
      packages/nextcloud/lib/src/api/core.openapi.json
  2. 30
      packages/nextcloud/lib/src/api/dav.openapi.json
  3. 464
      packages/nextcloud/lib/src/api/files.openapi.json
  4. 196
      packages/nextcloud/lib/src/api/files_reminders.openapi.json
  5. 394
      packages/nextcloud/lib/src/api/files_sharing.openapi.json
  6. 16
      packages/nextcloud/lib/src/api/files_trashbin.openapi.json
  7. 16
      packages/nextcloud/lib/src/api/files_versions.openapi.json
  8. 354
      packages/nextcloud/lib/src/api/provisioning_api.openapi.json
  9. 176
      packages/nextcloud/lib/src/api/theming.openapi.json
  10. 41
      packages/nextcloud/lib/src/api/updatenotification.openapi.json
  11. 134
      packages/nextcloud/lib/src/api/user_status.openapi.json
  12. 38
      packages/nextcloud/lib/src/api/weather_status.openapi.json
  13. 2
      tool/generate-specs.sh

1178
packages/nextcloud/lib/src/api/core.openapi.json

File diff suppressed because it is too large Load Diff

30
packages/nextcloud/lib/src/api/dav.openapi.json

@ -153,6 +153,36 @@
} }
} }
} }
},
"404": {
"description": "File not found",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"400": {
"description": "Getting direct link is not possible",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"403": {
"description": "Missing permissions to get direct link",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }

464
packages/nextcloud/lib/src/api/files.openapi.json

@ -299,6 +299,36 @@
} }
} }
} }
},
"400": {
"description": "Getting thumbnail is not possible",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
}
}
}
}
},
"404": {
"description": "File not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"message": {
"type": "string"
}
}
}
}
}
} }
} }
} }
@ -590,6 +620,44 @@
} }
} }
} }
},
"500": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}
} }
} }
} }
@ -686,6 +754,82 @@
} }
} }
} }
},
"403": {
"description": "Opening file is not allowed",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}
},
"500": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}
} }
} }
} }
@ -790,6 +934,82 @@
} }
} }
} }
},
"403": {
"description": "Opening file is not allowed",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}
},
"500": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}
} }
} }
} }
@ -940,6 +1160,16 @@
} }
} }
} }
},
"403": {
"description": "Creating template is not allowed",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }
@ -1033,6 +1263,16 @@
} }
} }
} }
},
"403": {
"description": "Initializing the template directory is not allowed",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }
@ -1109,6 +1349,62 @@
} }
} }
} }
},
"400": {
"description": "Transferring ownership is not possible",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
},
"403": {
"description": "Transferring ownership is not allowed",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
} }
} }
} }
@ -1177,6 +1473,62 @@
} }
} }
} }
},
"403": {
"description": "Accepting ownership transfer is not allowed",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
},
"404": {
"description": "Ownership transfer not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
} }
} }
}, },
@ -1243,6 +1595,62 @@
} }
} }
} }
},
"403": {
"description": "Rejecting ownership transfer is not allowed",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
},
"404": {
"description": "Ownership transfer not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
} }
} }
} }
@ -1334,6 +1742,34 @@
} }
} }
} }
},
"500": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
} }
} }
} }
@ -1433,6 +1869,34 @@
} }
} }
} }
},
"404": {
"description": "Local editor not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
} }
} }
} }

196
packages/nextcloud/lib/src/api/files_reminders.openapi.json

@ -132,6 +132,34 @@
} }
} }
} }
},
"401": {
"description": "User not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
} }
} }
}, },
@ -216,6 +244,118 @@
} }
} }
} }
},
"201": {
"description": "Reminder created successfully",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
},
"400": {
"description": "Creating reminder is not possible",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
},
"401": {
"description": "User not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
},
"404": {
"description": "File not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
} }
} }
}, },
@ -291,6 +431,62 @@
} }
} }
} }
},
"401": {
"description": "User not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
},
"404": {
"description": "Reminder not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
} }
} }
} }

394
packages/nextcloud/lib/src/api/files_sharing.openapi.json

@ -1335,6 +1335,90 @@
} }
} }
} }
},
"400": {
"description": "Getting preview is not possible",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
},
"403": {
"description": "Getting preview is not allowed",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
},
"404": {
"description": "Share or preview not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
} }
} }
} }
@ -1424,6 +1508,90 @@
} }
} }
} }
},
"400": {
"description": "Getting preview is not possible",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
},
"403": {
"description": "Getting preview is not allowed",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
},
"404": {
"description": "Share or preview not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
} }
} }
} }
@ -1493,6 +1661,22 @@
} }
} }
} }
},
"403": {
"description": "Getting share info is not allowed",
"content": {
"application/json": {
"schema": {}
}
}
},
"404": {
"description": "Share not found",
"content": {
"application/json": {
"schema": {}
}
}
} }
} }
} }
@ -1601,6 +1785,16 @@
} }
} }
} }
},
"404": {
"description": "The folder was not found or is inaccessible",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
}, },
@ -1760,6 +1954,36 @@
} }
} }
} }
},
"400": {
"description": "Unknown share type",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"403": {
"description": "Creating the share is not allowed",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"404": {
"description": "Creating the share failed",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }
@ -1832,6 +2056,26 @@
} }
} }
} }
},
"500": {
"description": "",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"404": {
"description": "The given path is invalid",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }
@ -1973,6 +2217,16 @@
} }
} }
} }
},
"404": {
"description": "Share not found",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
}, },
@ -2122,6 +2376,36 @@
} }
} }
} }
},
"400": {
"description": "Share could not be updated because the requested changes are invalid",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"403": {
"description": "Missing permissions to update the share",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"404": {
"description": "Share not found",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
}, },
@ -2187,6 +2471,26 @@
} }
} }
} }
},
"404": {
"description": "Share not found",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"403": {
"description": "Missing permissions to delete the share",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }
@ -2254,6 +2558,26 @@
} }
} }
} }
},
"404": {
"description": "Share not found",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"400": {
"description": "Share could not be accepted",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }
@ -2384,6 +2708,16 @@
} }
} }
} }
},
"404": {
"description": "Share not found",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }
@ -2525,6 +2859,16 @@
} }
} }
} }
},
"400": {
"description": "Invalid search parameters",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }
@ -2815,6 +3159,16 @@
} }
} }
} }
},
"404": {
"description": "Share not found",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
}, },
@ -2881,6 +3235,16 @@
} }
} }
} }
},
"404": {
"description": "Share not found",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }
@ -2951,6 +3315,16 @@
} }
} }
} }
},
"404": {
"description": "Share not found",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
}, },
@ -3017,6 +3391,26 @@
} }
} }
} }
},
"404": {
"description": "Share not found",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"403": {
"description": "Unsharing is not possible",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }

16
packages/nextcloud/lib/src/api/files_trashbin.openapi.json

@ -110,6 +110,22 @@
} }
} }
} }
},
"400": {
"description": "Getting preview is not possible",
"content": {
"application/json": {
"schema": {}
}
}
},
"404": {
"description": "Preview not found",
"content": {
"application/json": {
"schema": {}
}
}
} }
} }
} }

16
packages/nextcloud/lib/src/api/files_versions.openapi.json

@ -117,6 +117,22 @@
} }
} }
} }
},
"400": {
"description": "Getting preview is not possible",
"content": {
"application/json": {
"schema": {}
}
}
},
"404": {
"description": "Preview not found",
"content": {
"application/json": {
"schema": {}
}
}
} }
} }
} }

354
packages/nextcloud/lib/src/api/provisioning_api.openapi.json

@ -1174,6 +1174,26 @@
} }
} }
} }
},
"404": {
"description": "Group not found",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"403": {
"description": "Missing permissions to get users in the group",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }
@ -1860,6 +1880,16 @@
} }
} }
} }
},
"403": {
"description": "Missing permissions to make user subadmin",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }
@ -2067,6 +2097,34 @@
} }
} }
} }
},
"400": {
"description": "Invalid location",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
} }
} }
} }
@ -3446,6 +3504,52 @@
} }
} }
} }
},
"403": {
"description": "App is not allowed",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
} }
} }
} }
@ -3542,6 +3646,52 @@
} }
} }
} }
},
"403": {
"description": "App is not allowed",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
} }
} }
}, },
@ -3625,6 +3775,52 @@
} }
} }
} }
},
"403": {
"description": "App or key is not allowed",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
} }
} }
}, },
@ -3700,6 +3896,52 @@
} }
} }
} }
},
"403": {
"description": "App or key is not allowed",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
} }
} }
} }
@ -3785,6 +4027,34 @@
} }
} }
} }
},
"400": {
"description": "Preference invalid",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
} }
} }
}, },
@ -3859,6 +4129,34 @@
} }
} }
} }
},
"400": {
"description": "Preference invalid",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
} }
} }
} }
@ -3943,6 +4241,34 @@
} }
} }
} }
},
"400": {
"description": "Preference invalid",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
} }
} }
}, },
@ -4020,6 +4346,34 @@
} }
} }
} }
},
"400": {
"description": "Preference invalid",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
} }
} }
} }

176
packages/nextcloud/lib/src/api/theming.openapi.json

@ -196,6 +196,16 @@
} }
} }
} }
},
"404": {
"description": "Theme not found",
"content": {
"text/html": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }
@ -247,6 +257,26 @@
} }
} }
} }
},
"404": {
"description": "Image not found",
"content": {
"text/html": {
"schema": {
"type": "string"
}
}
}
},
"500": {
"description": "",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }
@ -387,6 +417,26 @@
} }
} }
} }
},
"404": {
"description": "Favicon not found",
"content": {
"text/html": {
"schema": {
"type": "string"
}
}
}
},
"500": {
"description": "",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }
@ -430,6 +480,26 @@
} }
} }
} }
},
"404": {
"description": "Touch icon not found",
"content": {
"text/html": {
"schema": {
"type": "string"
}
}
}
},
"500": {
"description": "",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }
@ -482,6 +552,26 @@
} }
} }
} }
},
"404": {
"description": "Themed icon not found",
"content": {
"text/html": {
"schema": {
"type": "string"
}
}
}
},
"500": {
"description": "",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }
@ -523,6 +613,16 @@
} }
} }
} }
},
"404": {
"description": "Background image not found",
"content": {
"text/html": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }
@ -590,6 +690,42 @@
} }
} }
} }
},
"400": {
"description": "Setting background is not possible",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "string"
}
}
}
}
}
},
"500": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"error"
],
"properties": {
"error": {
"type": "string"
}
}
}
}
}
} }
} }
} }
@ -697,6 +833,26 @@
} }
} }
} }
},
"400": {
"description": "Enabling theme is not possible",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"500": {
"description": "",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }
@ -764,6 +920,26 @@
} }
} }
} }
},
"400": {
"description": "Disabling theme is not possible",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"500": {
"description": "",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }

41
packages/nextcloud/lib/src/api/updatenotification.openapi.json

@ -159,6 +159,47 @@
} }
} }
} }
},
"404": {
"description": "New versions not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"appstore_disabled"
],
"properties": {
"appstore_disabled": {
"type": "boolean"
},
"already_on_latest": {
"type": "boolean"
}
}
}
}
}
}
}
}
}
} }
} }
} }

134
packages/nextcloud/lib/src/api/user_status.openapi.json

@ -344,6 +344,16 @@
} }
} }
} }
},
"404": {
"description": "The user was not found",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }
@ -404,6 +414,16 @@
} }
} }
} }
},
"404": {
"description": "The user was not found",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }
@ -473,6 +493,16 @@
} }
} }
} }
},
"400": {
"description": "The status type is invalid",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }
@ -552,6 +582,16 @@
} }
} }
} }
},
"400": {
"description": "The clearAt or message-id is invalid",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }
@ -640,6 +680,16 @@
} }
} }
} }
},
"400": {
"description": "The clearAt or icon is invalid or the message is too long",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
} }
} }
} }
@ -904,6 +954,90 @@
} }
} }
} }
},
"400": {
"description": "Invalid status to update",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
},
"500": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
},
"204": {
"description": "User has no status to keep alive",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
} }
} }
} }

38
packages/nextcloud/lib/src/api/weather_status.openapi.json

@ -728,6 +728,44 @@
} }
} }
} }
},
"404": {
"description": "Forecast not found",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {
"type": "object",
"required": [
"success"
],
"properties": {
"success": {
"type": "boolean"
}
}
}
}
}
}
}
}
}
} }
} }
} }

2
tool/generate-specs.sh

@ -34,7 +34,7 @@ for path in \
codename="$(echo $path | sed "s/^apps\///")" codename="$(echo $path | sed "s/^apps\///")"
( (
cd external/nextcloud-server cd external/nextcloud-server
composer exec generate-spec -- "$path" "../../packages/nextcloud/lib/src/api/$codename.openapi.json" --first-status-code --first-content-type --openapi-version 3.1.0 composer exec generate-spec -- "$path" "../../packages/nextcloud/lib/src/api/$codename.openapi.json" --first-content-type --openapi-version 3.1.0
) )
done done

Loading…
Cancel
Save