feat: add OpenAPI tags to various controllers for improved API documentation

This commit is contained in:
hamed
2026-06-15 14:54:10 +03:30
parent e95c5c12d1
commit ec36eefeb8
20 changed files with 40 additions and 0 deletions
@@ -5,6 +5,7 @@ namespace App\Category\Controller;
use App\Shared\Controller\BaseController;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\Routing\Attribute\Route;
use OpenApi\Attributes as OA;
/**
* Legacy stub — all endpoints migrated to domain-specific controllers:
@@ -14,6 +15,7 @@ use Symfony\Component\Routing\Attribute\Route;
* Insurances → App\Insurance\Controller\InsuranceController
* Tags → App\Tag\Controller\TagController
*/
#[OA\Tag(name: 'Categories')]
class CategoryController extends BaseController
{
#[Route('/api/v1/categorys/{bundle}', methods: ['GET'])]