#api
Explore materials tagged "api" from expert practitioners. Up-to-date articles and useful tips to help you grow.
Articles with tag "#api"
All materials on the topic api
HTML sites with FastAPI: Jinja, static files, and forms
FastAPI can return more than JSON. Jinja2Templates renders HTML, while StaticFiles serves CSS and images. A regular HTML form uses...
Secure file uploads: size, type, names, and storage
Choosing a photo looks simple: the browser sends a file and the server stores it. However, its name, declared type,...
S3-compatible object storage: buckets, keys, and URLs
A regular folder works on one computer. After deployment it is unreliable: a container can be replaced, and several application...
Cookie sessions and CSRF in server-rendered web applications
A cookie session connects browser requests to a user. A signed cookie prevents undetected modification, but its contents are not...
Middleware and CORS in FastAPI
Middleware processes requests and responses around FastAPI routes, while CORS controls which browser origins may access the API.
HTTPException in FastAPI
Covered topics: Basic Usage, Status Codes, Error Details, Custom Headers.
Dependency Injection in FastAPI
Depends β FastAPI's dependency injection system for reusing code across endpoints.
Testing FastAPI with pytest
Covered topics: Installation, TestClient (synchronous), Test database, Tests with fixtures.
Lifespan Events in FastAPI
Lifespan β manage application startup and shutdown (DB initialization, ML models, connection pools).
Background Tasks in FastAPI
BackgroundTasks β execute tasks after the response has been sent to the client.
FastAPI: Basics
FastAPI is a modern Python framework for building APIs. Automatic documentation, type hints, high performance.
SQLModel CRUD in FastAPI
SQLModel combines SQLAlchemy and Pydantic β a single model for both the database and the API.
Similar tags
Study related topics
Looking for more on the topic?
Study all our materials or subscribe to updates