# Router Tags

* If you navigate to the DOCS page

{% hint style="info" %}
Usually <http://127.0.0.1:8000/docs>
{% endhint %}

<figure><img src="/files/WjgRSjDHuQRaLZrpu9IF" alt=""><figcaption></figcaption></figure>

* Tags will allow us to group this documentation based on responsibility
* Basically grouping them in "folders"
* This is very easy to update
* Withing the `router` variable we will have to add the tag

```python
# post.py

# Before:
router = APIRouter(
    prefix="/posts"
)

# After:
router = APIRouter(
    prefix="/posts",
    tags=['Posts']
)

# user.py

# Before:
router = APIRouter(
    prefix="/users"
)

# After:
router = APIRouter(
    prefix="/users",
    tags=['Users']
)
```

* Now this has updated our sections as follows:

<figure><img src="/files/StBqnDlRGgNthkhvHZPG" alt=""><figcaption></figcaption></figure>

* This improved the readability


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.arkannis.net/programming/python/frameworks/fastapi/router-tags.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
