LogoClawIndex
CasesSkillsAbout
LogoClawIndex

py-fastapi-patterns - FastAPI Patterns for API Design

FastAPI patterns for API design including dependency injection, response models, error handling, and OpenAPI schema generation.

Tags

Updated: 2026-06-30

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Define dependency injection chains
  • Specify response models
  • Handle HTTP errors with exceptions
  • Configure route ordering
  • Set path and query parameters
  • Validate request bodies
  • Add middleware components
  • Generate OpenAPI schemas
  • Organize API routers

Inputs

  • FastAPI application code
  • SQLModel or Pydantic models
  • API route definitions

Outputs

  • FastAPI endpoint code
  • OpenAPI schema
  • Error handling code
  • Middleware configuration

Requirements

  • FastAPI framework
  • Pydantic v2
  • Python 3.10+
  • SQLModel (optional)

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.
FastAPI
API design
Python
OpenAPI
dependency injection
error handling
Define dependency injection chains
Specify response models
Handle HTTP errors with exceptions
Configure route ordering
FastAPI application code
SQLModel or Pydantic models
API route definitions
FastAPI endpoint code
OpenAPI schema
Error handling code