> For the complete documentation index, see [llms.txt](https://docs.arkannis.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.arkannis.net/programming/python/frameworks/fastapi/api-documentation.md).

# API Documentation

* The cool thing about FastAPI is that it's self documenting
* Meaning that you don't have to create any sort of API documentation
* This is done by using Swagger UI
* And is accessed by using the base ROOT URL with <mark style="color:orange;">`/docs`</mark>&#x20;

Example:

```markup
http://127.0.0.1:8000/docs
```

* It redirects you to a page with all the documentation

![](/files/4GMCEI1kTZ9zy15xfaZy)

* Additionally this also allows you to see what is required to run the query successfully and try it out from the documentation itself

![](/files/RCQzNzsUmquRUq7SHjOb)

![
](/files/0hBrozkELQT45bMBt9DU)

* There is an alternative documentation tool as well called Redoc
* This can be accessed by using the base URL + <mark style="color:orange;">`/redoc`</mark>

```markup
http://127.0.0.1:8000/redoc
```
