Skip to content

Commit

Permalink
Document endpoint tags
Browse files Browse the repository at this point in the history
  • Loading branch information
diasdm committed Dec 16, 2024
1 parent 463621f commit 421874d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,17 @@ You can use docstrings to customise the summary and description shown in the sch
description.
"""
Group endpoints using tags
++++++++++++++++++++++++++

Both :code:`api` and :code:`api_view` decorators allow to specify endpoint tags which group endpoints in the schema:

.. code-block:: python
@SCHEMA.api(tags=["Bar"])
async def foo(request: web.Request) -> APIResponse[list[str], Literal[200]]:
return APIResponse(["foo"])
Library Installation
--------------------

Expand Down

0 comments on commit 421874d

Please sign in to comment.