From 57f8cf4634fbd025df7258405112ad2be8485030 Mon Sep 17 00:00:00 2001 From: Gripinskiy Sergey Date: Sat, 15 Jun 2019 16:22:54 +0300 Subject: [PATCH] Question about @SWG\Tag annotation added to FAQ (#1525) --- Resources/doc/faq.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Resources/doc/faq.rst b/Resources/doc/faq.rst index 4f704e8..9149c95 100644 --- a/Resources/doc/faq.rst +++ b/Resources/doc/faq.rst @@ -178,3 +178,22 @@ A: We removed the google fonts in 3.3 to avoid the external request for GDPR rea } {% 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 + { + //... + }