# Working in FastAPI

FastAPI is a modern, high-performance Python web framework for building APIs quickly and efficiently. It supports automatic validation, async programming, and OpenAPI documentation out of the box—making it ideal for scalable healthcare services and backend workflows.

Key features:

* **Type hints for validation** using Pydantic
* **Asynchronous support** with `async def`
* **Auto-generated docs** via Swagger and ReDoc
* **Fast**—built on Starlette and Uvicorn

🔗 **Official Resources**

* FastAPI Documentation: <https://fastapi.tiangolo.com>
* Pydantic (data validation): <https://docs.pydantic.dev>
* Starlette (underlying toolkit): <https://www.starlette.io>

For healthcare developers, FastAPI pairs well with orchestrators like **Navigator** in Health Universe for managing clinical workflows and microservices at scale. This allows developers to leverage the power of Navigator to use clinical and workflow context to power their FastAPI apps.


---

# 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.healthuniverse.com/overview/building-apps-in-health-universe/developing-your-health-universe-app/working-in-fastapi.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.
