aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings
diff options
context:
space:
mode:
authorjld3103 <jld3103yt@gmail.com>2023-05-24 16:34:27 +0200
committerjld3103 <jld3103yt@gmail.com>2023-05-24 16:51:38 +0200
commit4218f719eac246441dbe0b323635fb653ebcd482 (patch)
treee9f78bed6bdd5af5540a4b7178ed87605df35df9 /apps/settings
parent294035f523a0149dcab5eb301ec39e99d09f7adb (diff)
downloadnextcloud-server-4218f719eac246441dbe0b323635fb653ebcd482.tar.gz
nextcloud-server-4218f719eac246441dbe0b323635fb653ebcd482.zip
Add OpenAPI specs
Signed-off-by: jld3103 <jld3103yt@gmail.com>
Diffstat (limited to 'apps/settings')
-rw-r--r--apps/settings/openapi.json65
1 files changed, 65 insertions, 0 deletions
diff --git a/apps/settings/openapi.json b/apps/settings/openapi.json
new file mode 100644
index 00000000000..6d1f8a14950
--- /dev/null
+++ b/apps/settings/openapi.json
@@ -0,0 +1,65 @@
+{
+ "openapi": "3.0.3",
+ "info": {
+ "title": "settings",
+ "version": "0.0.1",
+ "description": "Nextcloud settings",
+ "license": {
+ "name": "agpl"
+ }
+ },
+ "components": {
+ "securitySchemes": {
+ "basic_auth": {
+ "type": "http",
+ "scheme": "basic"
+ },
+ "bearer_auth": {
+ "type": "http",
+ "scheme": "bearer"
+ }
+ },
+ "schemas": []
+ },
+ "paths": {
+ "/index.php/settings/admin/log/download": {
+ "get": {
+ "operationId": "log_settings-download",
+ "summary": "download logfile",
+ "description": "This endpoint requires admin access",
+ "tags": [
+ "log_settings"
+ ],
+ "security": [
+ {
+ "bearer_auth": []
+ },
+ {
+ "basic_auth": []
+ }
+ ],
+ "responses": {
+ "200": {
+ "description": "",
+ "headers": {
+ "Content-Disposition": {
+ "schema": {
+ "type": "string"
+ }
+ }
+ },
+ "content": {
+ "application/octet-stream": {
+ "schema": {
+ "type": "string",
+ "format": "binary"
+ }
+ }
+ }
+ }
+ }
+ }
+ }
+ },
+ "tags": []
+} \ No newline at end of file