fix(TextToImage): Fix docblock of getImage route

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2023-10-18 10:53:06 +02:00
parent c5fbe5a7bc
commit d3da49de44

View file

@ -130,15 +130,14 @@ class TextToImageApiController extends \OCP\AppFramework\OCSController {
}
/**
* This endpoint allows checking the status and results of a task.
* Tasks are removed 1 week after receiving their last update.
* This endpoint allows downloading the resulting image of a task
*
* @param int $id The id of the task
*
* @return FileDisplayResponse<Http::STATUS_OK, array{'Content-Type': string}>|DataResponse<Http::STATUS_NOT_FOUND|Http::STATUS_INTERNAL_SERVER_ERROR, array{message: string}, array{}>
*
* 200: Task returned
* 404: Task not found
* 200: Image returned
* 404: Task or image not found
*/
#[PublicPage]
#[AnonRateLimit(limit: 5, period: 120)]