Skip to content

How would I group endpoints using the tag keyword #2151

Answered by drychlik76
drychlik76 asked this question in Q&A
Discussion options

You must be logged in to vote

I answered my own question by digging and trying different things. (It helps to read and understand the open api spec a little more).
On a collectionOperation or itemOperation, use an array. Under that key word, apply the key word 'openapi_context' which is another array, then set 'tag's key word which is an array of strings.

    collectionOperations: [
        "get" => [
            'openapi_context' => [
                'tags' => ['My Tag'],
                'summary' => 'Summary of the things.'
            ],
        ]
    ],

Hope this helps someone in the future.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by drychlik76
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant