CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

maria/fastapi

FastAPI framework with Pydantic v2 patterns, PII sanitisation, and practical workflows

94%

Overall

Overview
Review
Evals
Files

SKILL.mdskills/run-check-server/

name:
run-check-server
description:
Start a FastAPI dev server, verify docs and OpenAPI schema, test endpoints, and run pytest. Use when running, checking, or debugging a FastAPI application.

Run & Check FastAPI Server

Steps

  1. Start the dev server:
fastapi dev app/main.py

This enables auto-reload. For production, use fastapi run app/main.py.

  1. Verify interactive docs load:
curl -s -o /dev/null -w "%{http_code}" http://127.0.0.1:8000/docs
# Expect: 200
  1. Check the OpenAPI schema:
curl -s http://127.0.0.1:8000/openapi.json | python -m json.tool

Confirm all expected endpoints and response models appear.

  1. Test endpoints with curl:
# GET example
curl -s http://127.0.0.1:8000/health

# POST example
curl -s -X POST http://127.0.0.1:8000/items/ \
  -H "Content-Type: application/json" \
  -d '{"name": "Widget", "price": 9.99}'
  1. Run tests:
pytest -v
  1. Troubleshooting:
SymptomCauseFix
Address already in usePort 8000 occupiedlsof -i :8000 then kill the process, or use --port 8001
ModuleNotFoundErrorMissing dependencypip install "fastapi[standard]"
No module named 'app'Wrong working directorycd to the project root containing app/
422 on POSTRequest body doesn't match schemaCheck the schema at /docs and fix the payload
lifespan errorMixing on_startup/on_shutdown with lifespanUse only lifespan — remove deprecated event handlers
tessl i maria/fastapi@0.1.0

skills

run-check-server

tile.json