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 · 0 comments
Open
Labels

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant