How would I group endpoints using the tag keyword #2151
-
Using swagger, I could group operations together using a tag; however I have not found away to do this in Api Platform. I assumed that it was a key word under a collection operation or item operation but no joy. Is this possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I answered my own question by digging and trying different things. (It helps to read and understand the open api spec a little more).
Hope this helps someone in the future. |
Beta Was this translation helpful? Give feedback.
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.
Hope this helps someone in the future.