aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings
diff options
context:
space:
mode:
authorKate <26026535+provokateurin@users.noreply.github.com>2023-05-24 17:45:12 +0200
committerGitHub <noreply@github.com>2023-05-24 17:45:12 +0200
commit115689f1679c48cb8f6ac84beb261fd5d5799038 (patch)
treecace0f28b4b8541f56e9cdc276a4d2f7eca462ba /apps/settings
parente6038268d8e79e3c78f03ea73aa3e4df6bea26af (diff)
parent4218f719eac246441dbe0b323635fb653ebcd482 (diff)
downloadnextcloud-server-115689f1679c48cb8f6ac84beb261fd5d5799038.tar.gz
nextcloud-server-115689f1679c48cb8f6ac84beb261fd5d5799038.zip
Merge pull request #38438 from nextcloud/feature/openapi/specs
Add OpenAPI specs
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