SKILL

fastapi-router-py

Create FastAPI routers with CRUD operations, authentication dependencies, and proper response models. Use when building REST API endpoints, creating new routes, implementing CRUD operations, or adding authenticated endpoints in FastAPI applications.

Target: Cloud, operations & security. Automatically collected · unverified.

Excerpt from the author’s documentation

Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.

Read the original English text

Topics in the source

  • FastAPI Router
  • Quick Start
  • Authentication Patterns
  • Response Models
  • HTTP Status Codes
  • Integration Steps
  • Best Practices
  • Reference Files

Create FastAPI routers following established patterns with proper authentication, response models, and HTTP status codes. Copy the template from assets/template.py and replace placeholders: {{ResourceName}} → PascalCase name (e.g., Project) {{resourcename}} → snakecase name (e.g., project) {{resourceplural}} → plural form (e.g., projects) 1. Create router in src/backend/app/routers/ 2. Mount in src/backend/app/main.py 3. Create corresponding Pydantic models 4. Create service layer if needed 5. Add frontend API functions 1. Pick def or async def per endpoint based on whether you call async I/O; do not call blocking I/O from an async def handler. 2. Manage long-lived resources (DB pools, HTTP clients) in lifespan and inject via Depends; use with/async with for per-request resources. | File | Contents | |------|----------| | references/capabilities.md | Additional non-hero capabilities, operation-group coverage, and production checklists. |

Source repository
microsoft/skills
Source file
.github/plugins/azure-sdk-python/skills/fastapi-router-py/SKILL.md
Fixed revision
9287b443662d2433c85621c7325ee72a0ce499b5
Read the complete original documentation ↗

Sources and evidence

This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.

Author: Microsoft Skills · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-10T19:02:06.469Z.

Categories are inferred from names, descriptions and paths. They do not establish compatibility.

License and attribution

MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.

Original license ↗

Synchronization, copying and user-reported success do not mark a resource as runtime-tested.

Limitations and notes

  • Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.