Question about @SWG\Tag annotation added to FAQ (#1525)

This commit is contained in:
Gripinskiy Sergey 2019-06-15 16:22:54 +03:00 committed by Guilhem N
parent 48c29474e0
commit 57f8cf4634

View File

@ -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
{
//...
}