Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: How to assign tags to each area only via yml configuration? #2389

Open
landsman opened this issue Nov 8, 2024 · 1 comment
Open
Labels
question stale stale issue/PR

Comments

@landsman
Copy link

landsman commented Nov 8, 2024

Version

4.33.4

Question

I am looking for something like this. I don't want to specify tags, doc in controllers. I want to do it on config level, based on the path prefix.

nelmio_api_doc:
  documentation:
    info:
      title: "Hello World"
      description: "Test"
      version: "2.0.0"
    tags:
      - name: "Curriculum"
        description: "Module for learning."
      - name: "Warehouse"
        description: "Items and stocktaking."

  areas:
    curriculum:
      path_patterns:
        - ^/v1/curriculum
      documentation:
        tags:
          - { name: "Curriculum" }
    warehouse:
      path_patterns:
        - ^/v1/warehouse
      documentation:
        tags:
          - { name: "Warehouse" }
    default:
      path_patterns:
        - ^/v2/

Additional context

No response

Copy link

This issue has been marked as stale because it has not had any activity for 60 days. Remove stale label or comment to prevent this from being closed in 21 days.

@github-actions github-actions bot added the stale stale issue/PR label Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question stale stale issue/PR
Projects
None yet
Development

No branches or pull requests

1 participant