@@ -93,7 +93,7 @@ public function __construct(
9393 * @OA\Get(
9494 * path="/whatnow/{id}",
9595 * tags={"Whatnow"},
96- * summary="Obtiene un recurso publicado por ID",
96+ * summary="Obtiene un recurso publicado por ID (public) ",
9797 * description="Retorna los detalles de un recurso publicado basado en el ID proporcionado.",
9898 * operationId="getPublishedById",
9999 * security={{"ApiKeyAuth": {}}},
@@ -159,6 +159,8 @@ public function getPublishedById($id)
159159 * tags={"Whatnow"},
160160 * summary="Get the latest revision of a WhatNow entity by ID",
161161 * operationId="getLatestById",
162+ * security={},
163+ * deprecated=true,
162164 * @OA\Parameter(
163165 * name="id",
164166 * in="path",
@@ -214,6 +216,8 @@ public function getLatestById($id)
214216 * tags={"Whatnow"},
215217 * summary="Delete a WhatNow entity by ID",
216218 * operationId="deleteById",
219+ * security={},
220+ * deprecated=true,
217221 * @OA\Parameter(
218222 * name="id",
219223 * in="path",
@@ -260,7 +264,7 @@ public function deleteById($id)
260264 * @OA\Get(
261265 * path="/org/{code}/whatnow",
262266 * tags={"Whatnow"},
263- * summary="Get a feed of WhatNow entities for a specific organisation",
267+ * summary="Get a feed of WhatNow entities for a specific organisation (public) ",
264268 * operationId="getFeed",
265269 * security={{"ApiKeyAuth": {}}},
266270 * @OA\Parameter(
@@ -364,6 +368,8 @@ protected function changeLogStatus($status){
364368 * tags={"Whatnow"},
365369 * summary="Get the latest revisions for a country code",
366370 * operationId="getLatestForCountryCode",
371+ * security={},
372+ * deprecated=true,
367373 * @OA\Parameter(
368374 * name="code",
369375 * in="path",
@@ -416,6 +422,8 @@ public function getLatestForCountryCode($code)
416422 * tags={"Whatnow"},
417423 * summary="Get the latest revisions for a specific region",
418424 * operationId="getLatestForRegion",
425+ * security={},
426+ * deprecated=true,
419427 * @OA\Parameter(
420428 * name="code",
421429 * in="path",
@@ -501,6 +509,8 @@ public function getAllRevisions()
501509 * tags={"Whatnow"},
502510 * summary="Create a new WhatNow entity",
503511 * operationId="createWhatNowEntity",
512+ * security={},
513+ * deprecated=true,
504514 * @OA\RequestBody(
505515 * required=true,
506516 * @OA\JsonContent(
@@ -629,6 +639,8 @@ public function post()
629639 * tags={"Whatnow"},
630640 * summary="Update a WhatNow entity by ID",
631641 * operationId="putById",
642+ * deprecated=true,
643+ * security={},
632644 * @OA\Parameter(
633645 * name="id",
634646 * in="path",
@@ -678,22 +690,22 @@ public function putById($id)
678690 ]);
679691 }
680692
681- try {
682- $ this ->validate ($ this ->request , [
683- 'countryCode ' => 'alpha|size:3 ' ,
684- 'eventType ' => 'string|max:50 ' ,
685- 'regionName ' => 'nullable|string ' ,
686- 'translations ' => 'array ' ,
687- 'translations.*.webUrl ' => 'nullable|string ' ,
688- 'translations.*.lang ' => 'alpha|size:2 ' ,
689- 'translations.*.title ' => 'string ' ,
690- 'translations.*.description ' => 'string ' ,
691- ]);
692- } catch (ValidationException $ e ) {
693- Log::info ($ e ->getMessage ());
694-
695- return $ e ->getResponse ();
696- }
693+ // try {
694+ // $this->validate($this->request, [
695+ // 'countryCode' => 'alpha|size:3',
696+ // 'eventType' => 'string|max:50',
697+ // 'regionName' => 'nullable|string',
698+ // 'translations' => 'array',
699+ // 'translations.*.webUrl' => 'nullable|string',
700+ // 'translations.*.lang' => 'alpha|size:2',
701+ // 'translations.*.title' => 'string',
702+ // 'translations.*.description' => 'string',
703+ // ]);
704+ // } catch (ValidationException $e) {
705+ // Log::info($e->getMessage());
706+
707+ // return $e->getResponse();
708+ // }
697709
698710 try {
699711 $ org = $ this ->orgRepo ->findByCountryCode ($ this ->request ->input ('countryCode ' ));
@@ -755,6 +767,8 @@ public function putById($id)
755767 * tags={"Whatnow"},
756768 * summary="Create a new translation for a WhatNow entity",
757769 * operationId="createNewTranslation",
770+ * deprecated=true,
771+ * security={},
758772 * @OA\Parameter(
759773 * name="id",
760774 * in="path",
@@ -844,6 +858,8 @@ public function createNewTranslation($id)
844858 * tags={"Whatnow"},
845859 * summary="Update the published status of a translation",
846860 * operationId="patchTranslation",
861+ * deprecated=true,
862+ * security={},
847863 * @OA\Parameter(
848864 * name="id",
849865 * in="path",
@@ -927,6 +943,8 @@ public function patchTranslation($id, $translationId)
927943 * tags={"Whatnow"},
928944 * summary="Publish translations by IDs",
929945 * operationId="publishTranslationsByIds",
946+ * deprecated=true,
947+ * security={},
930948 * @OA\RequestBody(
931949 * required=true,
932950 * @OA\JsonContent(
0 commit comments