diff options
Diffstat (limited to 'apps/user_status/lib')
3 files changed, 7 insertions, 1 deletions
diff --git a/apps/user_status/lib/Controller/PredefinedStatusController.php b/apps/user_status/lib/Controller/PredefinedStatusController.php index 0a108a56bf6..ec78fedbc0b 100644 --- a/apps/user_status/lib/Controller/PredefinedStatusController.php +++ b/apps/user_status/lib/Controller/PredefinedStatusController.php @@ -63,6 +63,8 @@ class PredefinedStatusController extends OCSController { * @NoAdminRequired * * @return DataResponse<Http::STATUS_OK, UserStatusPredefined[], array{}> + * + * 200: Predefined statuses returned */ public function findAll():DataResponse { // Filtering out the invisible one, that should only be set by API diff --git a/apps/user_status/lib/Controller/StatusesController.php b/apps/user_status/lib/Controller/StatusesController.php index 0e4deca13b7..9e2bea8ff2f 100644 --- a/apps/user_status/lib/Controller/StatusesController.php +++ b/apps/user_status/lib/Controller/StatusesController.php @@ -68,6 +68,8 @@ class StatusesController extends OCSController { * @param int|null $limit Maximum number of statuses to find * @param int|null $offset Offset for finding statuses * @return DataResponse<Http::STATUS_OK, UserStatusPublic[], array{}> + * + * 200: Statuses returned */ public function findAll(?int $limit = null, ?int $offset = null): DataResponse { $allStatuses = $this->service->findAll($limit, $offset); @@ -86,7 +88,7 @@ class StatusesController extends OCSController { * @return DataResponse<Http::STATUS_OK, UserStatusPublic, array{}> * @throws OCSNotFoundException The user was not found * - * 200: The status was found successfully + * 200: Status returned */ public function find(string $userId): DataResponse { try { diff --git a/apps/user_status/lib/Controller/UserStatusController.php b/apps/user_status/lib/Controller/UserStatusController.php index 321555a45f2..5f0647563ca 100644 --- a/apps/user_status/lib/Controller/UserStatusController.php +++ b/apps/user_status/lib/Controller/UserStatusController.php @@ -172,6 +172,8 @@ class UserStatusController extends OCSController { * @NoAdminRequired * * @return DataResponse<Http::STATUS_OK, array<empty>, array{}> + * + * 200: Message cleared successfully */ public function clearMessage(): DataResponse { $this->service->clearMessage($this->userId); |