diff options
author | jld3103 <jld3103yt@gmail.com> | 2023-09-19 14:12:17 +0200 |
---|---|---|
committer | jld3103 <jld3103yt@gmail.com> | 2023-09-27 08:05:21 +0200 |
commit | c2d45cb1728e2191e51424734e74cb2a56b323b0 (patch) | |
tree | 0c46d10f4e5ef18bf0771069dd2a896da788b4ba /apps/federatedfilesharing | |
parent | 912b18b1fc9fd90bfc78f942cd2043a5a0145e69 (diff) | |
download | nextcloud-server-c2d45cb1728e2191e51424734e74cb2a56b323b0.tar.gz nextcloud-server-c2d45cb1728e2191e51424734e74cb2a56b323b0.zip |
Add single status code descriptions for OpenAPI
Signed-off-by: jld3103 <jld3103yt@gmail.com>
Diffstat (limited to 'apps/federatedfilesharing')
-rw-r--r-- | apps/federatedfilesharing/lib/Controller/RequestHandlerController.php | 6 | ||||
-rw-r--r-- | apps/federatedfilesharing/openapi.json | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php b/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php index 59e46af37cd..1f1334e7aee 100644 --- a/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php +++ b/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php @@ -134,6 +134,8 @@ class RequestHandlerController extends OCSController { * @param string|null $ownerFederatedId Federated ID of the receiver * @return Http\DataResponse<Http::STATUS_OK, array<empty>, array{}> * @throws OCSException + * + * 200: Share created successfully */ public function createShare( ?string $remote = null, @@ -284,6 +286,8 @@ class RequestHandlerController extends OCSController { * @param string|null $token Shared secret between servers * @return Http\DataResponse<Http::STATUS_OK, array<empty>, array{}> * @throws OCSException + * + * 200: Share declined successfully */ public function declineShare(int $id, ?string $token = null) { $notification = [ @@ -316,6 +320,8 @@ class RequestHandlerController extends OCSController { * @param string|null $token Shared secret between servers * @return Http\DataResponse<Http::STATUS_OK, array<empty>, array{}> * @throws OCSException + * + * 200: Share unshared successfully */ public function unshare(int $id, ?string $token = null) { if (!$this->isS2SEnabled()) { diff --git a/apps/federatedfilesharing/openapi.json b/apps/federatedfilesharing/openapi.json index 0bbe535cc2a..2a8d5cbfed6 100644 --- a/apps/federatedfilesharing/openapi.json +++ b/apps/federatedfilesharing/openapi.json @@ -243,7 +243,7 @@ ], "responses": { "200": { - "description": "", + "description": "Share created successfully", "content": { "application/json": { "schema": { @@ -629,7 +629,7 @@ ], "responses": { "200": { - "description": "", + "description": "Share declined successfully", "content": { "application/json": { "schema": { @@ -707,7 +707,7 @@ ], "responses": { "200": { - "description": "", + "description": "Share unshared successfully", "content": { "application/json": { "schema": { |