|
17 | 17 | use models\summit\ISummitRepository; |
18 | 18 | use ModelSerializers\SerializerRegistry; |
19 | 19 | use OpenApi\Attributes as OA; |
| 20 | +use Symfony\Component\HttpFoundation\Response; |
20 | 21 | use utils\Filter; |
21 | 22 | use utils\FilterElement; |
22 | 23 |
|
@@ -117,12 +118,12 @@ protected function getSummitRepository(): ISummitRepository |
117 | 118 | description: 'Attendee badges retrieved successfully', |
118 | 119 | content: new OA\JsonContent(ref: '#/components/schemas/PaginatedSummitAttendeeBadgesResponse') |
119 | 120 | ), |
120 | | - new OA\Response(response: 400, description: "Bad Request"), |
121 | | - new OA\Response(response: 401, description: "Unauthorized"), |
122 | | - new OA\Response(response: 403, description: "Forbidden"), |
123 | | - new OA\Response(response: 404, description: "Not Found"), |
124 | | - new OA\Response(response: 412, description: "Precondition Failed"), |
125 | | - new OA\Response(response: 500, description: "Internal Server Error"), |
| 121 | + new OA\Response(response: Response::HTTP_BAD_REQUEST, description: "Bad Request"), |
| 122 | + new OA\Response(response: Response::HTTP_UNAUTHORIZED, description: "Unauthorized"), |
| 123 | + new OA\Response(response: Response::HTTP_FORBIDDEN, description: "Forbidden"), |
| 124 | + new OA\Response(response: Response::HTTP_NOT_FOUND, description: "not found"), |
| 125 | + new OA\Response(response: Response::HTTP_PRECONDITION_FAILED, description: "Validation Error"), |
| 126 | + new OA\Response(response: Response::HTTP_INTERNAL_SERVER_ERROR, description: "Server Error"), |
126 | 127 | ] |
127 | 128 | )] |
128 | 129 |
|
@@ -223,12 +224,12 @@ function(){ |
223 | 224 | ) |
224 | 225 | ) |
225 | 226 | ), |
226 | | - new OA\Response(response: 400, description: "Bad Request"), |
227 | | - new OA\Response(response: 401, description: "Unauthorized"), |
228 | | - new OA\Response(response: 403, description: "Forbidden"), |
229 | | - new OA\Response(response: 404, description: "Not Found"), |
230 | | - new OA\Response(response: 412, description: "Precondition Failed"), |
231 | | - new OA\Response(response: 500, description: "Internal Server Error"), |
| 227 | + new OA\Response(response: Response::HTTP_BAD_REQUEST, description: "Bad Request"), |
| 228 | + new OA\Response(response: Response::HTTP_UNAUTHORIZED, description: "Unauthorized"), |
| 229 | + new OA\Response(response: Response::HTTP_FORBIDDEN, description: "Forbidden"), |
| 230 | + new OA\Response(response: Response::HTTP_NOT_FOUND, description: "not found"), |
| 231 | + new OA\Response(response: Response::HTTP_PRECONDITION_FAILED, description: "Validation Error"), |
| 232 | + new OA\Response(response: Response::HTTP_INTERNAL_SERVER_ERROR, description: "Server Error"), |
232 | 233 | ] |
233 | 234 | )] |
234 | 235 |
|
|
0 commit comments