C✳CODEZ.WIN
🌐 English

Localized reading guide

fastapi-router-pyPurpose, usage and source

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.

Source retrieved:

Source repository
microsoft/skills
SKILL.md
.github/plugins/azure-sdk-python/skills/fastapi-router-py/SKILL.md
Repository stars
3,157
Repository updated
2026-10-31
Categories
Cloud
Last collected

License: MIT

Workflow excerpts are reading aids, not executable instructions from Codez. No third-party Skill was run to produce this page.

The purpose and workflow passages below are upstream material, organized and translated for reading. They are distinct from the separately labeled Codez editorial analysis.

What this Skill does

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.

How the upstream workflow works

Quick Start

Copy the template from assets/template.py and replace placeholders: {{ResourceName}} → PascalCase name (e.g., Project) {{resource_name}} → snake_case name (e.g., project) {{resource_plural}} → plural form (e.g., projects)

Upstream passage · L14 ↗

Integration Steps

Create router in src/backend/app/routers/ Mount in src/backend/app/main.py Create corresponding Pydantic models Create service layer if needed

Upstream passage · L55 ↗

FastAPI Router

Create FastAPI routers following established patterns with proper authentication, response models, and HTTP status codes.

Upstream passage · L10 ↗
Upstream passage · python ↗
# Optional auth - returns None if not authenticated
current_user: Optional[User] = Depends(get_current_user)

# Required auth - raises 401 if not authenticated
current_user: User = Depends(get_current_user_required)

Requirements and setup

No short requirements passage was selected from this file. This does not mean the Skill has no dependencies. Check the repository setup instructions and referenced files.

Limits and quality checks

No separate limits passage was selected from this file. This does not mean the Skill is safe for every input or environment. Review the complete source and validate your own result.

Start with a safe trial

  1. Check the supported host and the repository installation instructions. Keep the Skill directory and its referenced scripts, assets and documentation together; SKILL.md alone may omit dependencies.
  2. Give the agent your real input, desired output and acceptance criteria. Invocation syntax and available tools depend on the host; this site does not assume a universal install command.
  3. Try the source workflow in a disposable project or on a copy. Review operations that change files, remote services or billable resources before allowing them.
  4. Validate the output against the source quality checks and your own requirements. A successful trigger or a high repository Star count does not establish a correct result.

Skill format and directory specification ↗

Read further in the source

Translation and scope

This reading guide selects passages from the pinned upstream SKILL.md. Translation is assisted. It is not a complete manual or a claim of tested compatibility. Read the original and its referenced files before use.

This introduction refers to the pinned version below; current repository activity and collection time are shown separately.

Source retrieved
Source commit
00d66a64919edca5bca2c673373444e36a4b5461
Source SHA-256
a8c5911b2c67af768af99d0a1972e16c364ddd8194506d574ae90f375dca6bdf
Back to the full Skill catalog