mirror of
https://github.com/nextcloud/spreed.git
synced 2025-12-18 05:20:50 +01:00
fix(openapi): Adjust internal HostedSignalingServerController
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
590272de33
commit
d49f162197
1 changed files with 4 additions and 4 deletions
|
|
@ -41,7 +41,7 @@ class HostedSignalingServerController extends OCSController {
|
|||
/**
|
||||
* Get the authentication credentials
|
||||
*
|
||||
* @return DataResponse<Http::STATUS_OK, array{nonce: string}, array{}>|DataResponse<Http::STATUS_PRECONDITION_FAILED, array<empty>, array{}>
|
||||
* @return DataResponse<Http::STATUS_OK, array{nonce: string}, array{}>|DataResponse<Http::STATUS_PRECONDITION_FAILED, null, array{}>
|
||||
*
|
||||
* 200: Authentication credentials returned
|
||||
* 412: Getting authentication credentials is not possible
|
||||
|
|
@ -59,7 +59,7 @@ class HostedSignalingServerController extends OCSController {
|
|||
]);
|
||||
}
|
||||
|
||||
return new DataResponse([], Http::STATUS_PRECONDITION_FAILED);
|
||||
return new DataResponse(null, Http::STATUS_PRECONDITION_FAILED);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -101,7 +101,7 @@ class HostedSignalingServerController extends OCSController {
|
|||
/**
|
||||
* Delete the account
|
||||
*
|
||||
* @return DataResponse<Http::STATUS_NO_CONTENT, array<empty>, array{}>|DataResponse<Http::STATUS_BAD_REQUEST|Http::STATUS_INTERNAL_SERVER_ERROR, array{message: string}, array{}>
|
||||
* @return DataResponse<Http::STATUS_NO_CONTENT, null, array{}>|DataResponse<Http::STATUS_BAD_REQUEST|Http::STATUS_INTERNAL_SERVER_ERROR, array{message: string}, array{}>
|
||||
*
|
||||
* 204: Account deleted successfully
|
||||
* 400: Deleting account is not possible
|
||||
|
|
@ -135,6 +135,6 @@ class HostedSignalingServerController extends OCSController {
|
|||
|
||||
$this->logger->info('Deleted hosted signaling server account with ID ' . $accountId);
|
||||
|
||||
return new DataResponse([], Http::STATUS_NO_CONTENT);
|
||||
return new DataResponse(null, Http::STATUS_NO_CONTENT);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue