@@ -48,7 +48,7 @@ public function __construct()
4848 * @throws \phpMyFAQ\Core\Exception|Exception
4949 */
5050 #[OA \Get(
51- path: '/api/v3.1 /faqs/{categoryId} ' ,
51+ path: '/api/v3.2 /faqs/{categoryId} ' ,
5252 operationId: 'getByCategoryId ' ,
5353 description: 'This endpoint returns all the FAQs with a preview of the answer for the given category ID and '
5454 . 'the language provided by "Accept-Language". ' ,
@@ -104,7 +104,7 @@ public function getByCategoryId(Request $request): JsonResponse
104104 * @throws \phpMyFAQ\Core\Exception|Exception
105105 */
106106 #[OA \Get(
107- path: '/api/v3.1 /faq/{categoryId}/{faqId} ' ,
107+ path: '/api/v3.2 /faq/{categoryId}/{faqId} ' ,
108108 operationId: 'getFaqById ' ,
109109 description: 'This endpoint returns the FAQ for the given FAQ ID and the language provided by '
110110 . '"Accept-Language". ' ,
@@ -179,7 +179,7 @@ public function getById(Request $request): JsonResponse
179179 * @throws Exception
180180 */
181181 #[OA \Get(
182- path: '/api/v3.1 /faqs/tags/{tagId} ' ,
182+ path: '/api/v3.2 /faqs/tags/{tagId} ' ,
183183 operationId: 'getByTagId ' ,
184184 description: 'This endpoint returns all the FAQs for the given tag ID and the language provided by '
185185 . '
@@ -239,7 +239,7 @@ public function getByTagId(Request $request): JsonResponse
239239 * @throws \phpMyFAQ\Core\Exception|Exception
240240 */
241241 #[OA \Get(
242- path: '/api/v3.1 /faqs/popular ' ,
242+ path: '/api/v3.2 /faqs/popular ' ,
243243 operationId: 'getPopular ' ,
244244 description: 'This endpoint returns the popular FAQs for the given language provided by "Accept-Language". ' ,
245245 tags: ['Public Endpoints ' ],
@@ -287,7 +287,7 @@ public function getPopular(): JsonResponse
287287 * @throws Exception
288288 */
289289 #[OA \Get(
290- path: '/api/v3.1 /faqs/latest ' ,
290+ path: '/api/v3.2 /faqs/latest ' ,
291291 operationId: 'getLatest ' ,
292292 description: 'This endpoint returns the latest FAQs for the given language provided by "Accept-Language". ' ,
293293 tags: ['Public Endpoints ' ],
@@ -334,7 +334,7 @@ public function getLatest(): JsonResponse
334334 * @throws \phpMyFAQ\Core\Exception|Exception
335335 */
336336 #[OA \Get(
337- path: '/api/v3.1 /faqs/trending ' ,
337+ path: '/api/v3.2 /faqs/trending ' ,
338338 operationId: 'getTrending ' ,
339339 description: 'This endpoint returns the trending FAQs for the given language provided by "Accept-Language". ' ,
340340 tags: ['Public Endpoints ' ],
@@ -381,7 +381,7 @@ public function getTrending(): JsonResponse
381381 * @throws \phpMyFAQ\Core\Exception|Exception
382382 */
383383 #[OA \Get(
384- path: '/api/v3.1 /faqs/sticky ' ,
384+ path: '/api/v3.2 /faqs/sticky ' ,
385385 operationId: 'getSticky ' ,
386386 description: 'This endpoint returns the sticky FAQs for the given language provided by "Accept-Language". ' ,
387387 tags: ['Public Endpoints ' ],
@@ -433,7 +433,7 @@ public function getSticky(): JsonResponse
433433 * @throws \phpMyFAQ\Core\Exception|Exception
434434 */
435435 #[OA \Get(
436- path: '/api/v3.1 /faqs ' ,
436+ path: '/api/v3.2 /faqs ' ,
437437 operationId: 'getAll ' ,
438438 description: 'This endpoint returns all the FAQs for the given language provided by "Accept-Language". ' ,
439439 tags: ['Public Endpoints ' ],
@@ -491,7 +491,7 @@ public function list(): JsonResponse
491491 /**
492492 * @throws \phpMyFAQ\Core\Exception|\JsonException|Exception
493493 */
494- #[OA \Post(path: '/api/v3.1 /faq/create ' , operationId: 'createFaq ' , tags: ['Endpoints with Authentication ' ])]
494+ #[OA \Post(path: '/api/v3.2 /faq/create ' , operationId: 'createFaq ' , tags: ['Endpoints with Authentication ' ])]
495495 #[OA \Header(
496496 header: 'Accept-Language ' ,
497497 description: 'The language code for the login. ' ,
@@ -656,7 +656,7 @@ public function create(Request $request): JsonResponse
656656 * @throws \phpMyFAQ\Core\Exception|\JsonException|Exception
657657 */
658658 #[OA \Put(
659- path: '/api/v3.1 /faq/update ' ,
659+ path: '/api/v3.2 /faq/update ' ,
660660 operationId: 'updateFaq ' ,
661661 description: 'Used to update a FAQ in one existing category. ' ,
662662 tags: ['Endpoints with Authentication ' ],
0 commit comments