diff options
author | jld3103 <jld3103yt@gmail.com> | 2023-05-24 16:34:27 +0200 |
---|---|---|
committer | jld3103 <jld3103yt@gmail.com> | 2023-05-24 16:51:38 +0200 |
commit | 4218f719eac246441dbe0b323635fb653ebcd482 (patch) | |
tree | e9f78bed6bdd5af5540a4b7178ed87605df35df9 /apps/settings | |
parent | 294035f523a0149dcab5eb301ec39e99d09f7adb (diff) | |
download | nextcloud-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.json | 65 |
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 |