Skip to content

Commit

Permalink
Merge pull request #44216 from nextcloud/feat/core/openapi-capabilities
Browse files Browse the repository at this point in the history
feat(core): Include core capabilities in OpenAPI
  • Loading branch information
nickvergessen committed Apr 8, 2024
2 parents ede541b + f8ab422 commit 5ddba78
Show file tree
Hide file tree
Showing 15 changed files with 1,254 additions and 245 deletions.
66 changes: 60 additions & 6 deletions apps/dav/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -236,29 +236,83 @@
"404": {
"description": "File not found",
"content": {
"text/plain": {
"application/json": {
"schema": {
"type": "string"
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
},
"400": {
"description": "Getting direct link is not possible",
"content": {
"text/plain": {
"application/json": {
"schema": {
"type": "string"
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
},
"403": {
"description": "Missing permissions to get direct link",
"content": {
"text/plain": {
"application/json": {
"schema": {
"type": "string"
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
Expand Down
88 changes: 80 additions & 8 deletions apps/federatedfilesharing/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,27 @@
"400": {
"description": "Re-sharing is not possible",
"content": {
"text/plain": {
"application/json": {
"schema": {
"type": "string"
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
Expand Down Expand Up @@ -486,9 +504,27 @@
"400": {
"description": "Updating permissions is not possible",
"content": {
"text/plain": {
"application/json": {
"schema": {
"type": "string"
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
Expand Down Expand Up @@ -822,9 +858,27 @@
"400": {
"description": "Revoking the share is not possible",
"content": {
"text/plain": {
"application/json": {
"schema": {
"type": "string"
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
Expand Down Expand Up @@ -943,9 +997,27 @@
"400": {
"description": "Moving share is not possible",
"content": {
"text/plain": {
"application/json": {
"schema": {
"type": "string"
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
Expand Down
88 changes: 80 additions & 8 deletions apps/federation/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,27 @@
"403": {
"description": "Getting shared secret is not allowed",
"content": {
"text/plain": {
"application/json": {
"schema": {
"type": "string"
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
Expand Down Expand Up @@ -223,9 +241,27 @@
"403": {
"description": "Requesting shared secret is not allowed",
"content": {
"text/plain": {
"application/json": {
"schema": {
"type": "string"
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
Expand Down Expand Up @@ -321,9 +357,27 @@
"403": {
"description": "Getting shared secret is not allowed",
"content": {
"text/plain": {
"application/json": {
"schema": {
"type": "string"
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
Expand Down Expand Up @@ -407,9 +461,27 @@
"403": {
"description": "Requesting shared secret is not allowed",
"content": {
"text/plain": {
"application/json": {
"schema": {
"type": "string"
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
Expand Down
44 changes: 40 additions & 4 deletions apps/files/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -1084,9 +1084,27 @@
"403": {
"description": "Creating template is not allowed",
"content": {
"text/plain": {
"application/json": {
"schema": {
"type": "string"
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
Expand Down Expand Up @@ -1192,9 +1210,27 @@
"403": {
"description": "Initializing the template directory is not allowed",
"content": {
"text/plain": {
"application/json": {
"schema": {
"type": "string"
"type": "object",
"required": [
"ocs"
],
"properties": {
"ocs": {
"type": "object",
"required": [
"meta",
"data"
],
"properties": {
"meta": {
"$ref": "#/components/schemas/OCSMeta"
},
"data": {}
}
}
}
}
}
}
Expand Down
Loading

0 comments on commit 5ddba78

Please sign in to comment.