|
13 | 13 | **/ |
14 | 14 | use App\Security\SummitScopes; |
15 | 15 | use App\Services\Model\ISummitPresentationActionService; |
| 16 | +use Illuminate\Http\Response; |
16 | 17 | use Illuminate\Support\Facades\Log; |
17 | 18 | use Illuminate\Support\Facades\Request; |
18 | 19 | use models\exceptions\EntityNotFoundException; |
@@ -109,12 +110,11 @@ public function __construct |
109 | 110 | description: 'Presentation action marked as completed successfully', |
110 | 111 | content: new OA\JsonContent(ref: '#/components/schemas/PresentationAction') |
111 | 112 | ), |
112 | | - new OA\Response(response: 400, ref: '#/components/responses/400'), |
113 | | - new OA\Response(response: 401, ref: '#/components/responses/401'), |
114 | | - new OA\Response(response: 403, ref: '#/components/responses/403', description: 'Forbidden - User must be a track chair or track chair admin'), |
115 | | - new OA\Response(response: 404, ref: '#/components/responses/404'), |
116 | | - new OA\Response(response: 412, ref: '#/components/responses/412'), |
117 | | - new OA\Response(response: 500, ref: '#/components/responses/500'), |
| 113 | + new OA\Response(response: Response::HTTP_UNAUTHORIZED, description: "Unauthorized"), |
| 114 | + new OA\Response(response: Response::HTTP_FORBIDDEN, description: "Forbidden - User must be a track chair or track chair admin"), |
| 115 | + new OA\Response(response: Response::HTTP_NOT_FOUND, description: "Not Found"), |
| 116 | + new OA\Response(response: Response::HTTP_PRECONDITION_FAILED, description: "Validation Error"), |
| 117 | + new OA\Response(response: Response::HTTP_INTERNAL_SERVER_ERROR, description: "Server Error"), |
118 | 118 | ] |
119 | 119 | )] |
120 | 120 |
|
@@ -204,12 +204,11 @@ public function complete($summit_id, $selection_plan_id, $presentation_id, $acti |
204 | 204 | description: 'Presentation action marked as incomplete successfully', |
205 | 205 | content: new OA\JsonContent(ref: '#/components/schemas/PresentationAction') |
206 | 206 | ), |
207 | | - new OA\Response(response: 400, ref: '#/components/responses/400'), |
208 | | - new OA\Response(response: 401, ref: '#/components/responses/401'), |
209 | | - new OA\Response(response: 403, ref: '#/components/responses/403', description: 'Forbidden - User must be a track chair or track chair admin'), |
210 | | - new OA\Response(response: 404, ref: '#/components/responses/404'), |
211 | | - new OA\Response(response: 412, ref: '#/components/responses/412'), |
212 | | - new OA\Response(response: 500, ref: '#/components/responses/500'), |
| 207 | + new OA\Response(response: Response::HTTP_UNAUTHORIZED, description: "Unauthorized"), |
| 208 | + new OA\Response(response: Response::HTTP_FORBIDDEN, description: "Forbidden - User must be a track chair or track chair admin"), |
| 209 | + new OA\Response(response: Response::HTTP_NOT_FOUND, description: "Not Found"), |
| 210 | + new OA\Response(response: Response::HTTP_PRECONDITION_FAILED, description: "Validation Error"), |
| 211 | + new OA\Response(response: Response::HTTP_INTERNAL_SERVER_ERROR, description: "Server Error"), |
213 | 212 | ] |
214 | 213 | )] |
215 | 214 |
|
|
0 commit comments