FastAPI has two documentations:

  • by swagger-ui (yourfastapiurl:port/docs)
  • by redoc (yourfastapiurl:port/redoc)
from fastapi import FastAPI

app = FastAPI()

async def root():
    return {"result": "It's working"}

async def ise_search_mac_address(mac_address):
    return {"Search MAC": mac_address}

async def ise_mode(mode):
    if mode == 'dev':
        return {'result': "Working with Dev ISE"}
    return {'result': "Working with Prod ISE"}

Also you can try it right there:

And for sure, great FastAPI Documentation itself: here