# 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

![](https://3885248957-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoE4wMO1dMVDOGDjh0En7%2Fuploads%2Fk5u8kSA0h7i7V8l9qllH%2Fimage.png?alt=media\&token=d8d8448c-499d-4c33-9aec-cfd374a30387)

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

![](https://3885248957-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoE4wMO1dMVDOGDjh0En7%2Fuploads%2Fl6fBK4uh1YAIzOLAQgMO%2Fimage.png?alt=media\&token=1f35132b-0bcb-440a-a348-c75f21cad30d)

![
](https://3885248957-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FoE4wMO1dMVDOGDjh0En7%2Fuploads%2F7Jy8qWrVghLvsH4026RK%2Fimage.png?alt=media\&token=4bc6396b-88cb-48ba-b049-f77f11e12b33)

* 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
```
