Skip to content

Commit

Permalink
Docs updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Bishwas-py committed Feb 26, 2024
1 parent c1a6c2d commit db3bcab
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/swagger.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,19 @@ openapi_info = {
}
```


Also, you can assign tags name using `@djapigy` decorator.

```python
from djapy import djapigy
from djapy import djapify


@djapify(openapi_tags=["todos"])
def todo_list(request):
...
```

> Suggestion: You can `openapi_info > tags_info` to add more information about the tags and `@djapify` to add tags to the endpoint.
Explain the tags in the `openapi_info` and use them accordingly with `@djapify` decorator.

It's that simple.

0 comments on commit db3bcab

Please sign in to comment.