mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Question about @SWG\Tag annotation added to FAQ (#1525)
This commit is contained in:
parent
48c29474e0
commit
57f8cf4634
@ -178,3 +178,22 @@ A: We removed the google fonts in 3.3 to avoid the external request for GDPR rea
|
||||
}
|
||||
</style>
|
||||
{% endblock stylesheets %}
|
||||
|
||||
Endpoints grouping
|
||||
------------------
|
||||
|
||||
Q: Areas feature doesn't fit my needs. So how can I group similar endpoints of one or more controllers in a separate section in the documentation?
|
||||
|
||||
A: Use ``@SWG\Tag`` annotation.
|
||||
|
||||
.. code-block:: php
|
||||
|
||||
/**
|
||||
* Class BookmarkController
|
||||
*
|
||||
* @SWG\Tag(name="Bookmarks")
|
||||
*/
|
||||
class BookmarkController extends AbstractFOSRestController implements ContextPresetInterface
|
||||
{
|
||||
//...
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user