FastAPI
Package: fastapi � 23 nodes � FastAPI web framework — routes, middleware, responses, and dependency injection
Build REST APIs with automatic OpenAPI documentation, request validation, and dependency injection.
Node Reference
| Node | Type | Inputs | Outputs |
|---|---|---|---|
| Create App | statement | Title (str), Version (str), Description (str), Docs URL (str) | App (fastapi.App) |
| Create Router | statement | Prefix (str), Tags (str) | Router (fastapi.Router) |
| Include Router | statement | App (fastapi.App), Router (fastapi.Router), Prefix (str), Tags (str) | - |
| Get Route | statement | App (fastapi.App), Path (str), Handler Function (str), Summary (str), Status Code (int) | - |
| Post Route | statement | App (fastapi.App), Path (str), Handler Function (str), Summary (str), Status Code (int) | - |
| Put Route | statement | App (fastapi.App), Path (str), Handler Function (str), Summary (str), Status Code (int) | - |
| Delete Route | statement | App (fastapi.App), Path (str), Handler Function (str), Summary (str), Status Code (int) | - |
| Patch Route | statement | App (fastapi.App), Path (str), Handler Function (str), Summary (str), Status Code (int) | - |
| Add Cors | statement | App (fastapi.App), Allow Origins (str), Allow Methods (str), Allow Headers (str), Allow Credentials (bool) | - |
| Add Gzip | statement | App (fastapi.App), Minimum Size (int) | - |
| Add Trusted Host | statement | App (fastapi.App), Allowed Hosts (str) | - |
| Json Response | statement | Content (any), Status Code (int) | Response (fastapi.Response) |
| Html Response | statement | Content (str), Status Code (int) | Response (fastapi.Response) |
| Plain Response | statement | Content (str), Status Code (int) | Response (fastapi.Response) |
| Redirect Response | statement | URL (str), Status Code (int) | Response (fastapi.Response) |
| File Response | statement | File Path (str), Filename (str), Media Type (str) | Response (fastapi.Response) |
| Http Exception | statement | Status Code (int), Detail (str) | - |
| Depends | expression | Dependency Function (str) | Result (any) |
| Query Param | expression | Default (any), Title (str), Description (str), Min Length (int), Max Length (int) | Result (any) |
| Path Param | expression | Title (str), Description (str), Greater Than (float), Less Than (float) | Result (any) |
| Body Param | expression | Default (any), Embed (bool), Title (str), Description (str) | Result (any) |
| Header Param | expression | Default (any), Alias (str), Description (str) | Result (any) |
| Run Server | statement | App (fastapi.App), Host (str), Port (int), Reload (bool) | - |