api-endpoint-implementation
Installation
SKILL.md
API Endpoint Implementation Pattern
This skill defines how to implement FastAPI REST endpoints following established patterns.
Endpoint Structure
Basic Endpoint
from fastapi import FastAPI, status
from fastapi.responses import JSONResponse
from datetime import UTC, datetime
@app.get("/api/items")
async def list_items() -> JSONResponse:
"""List all items.