# Fastapi Route Change

> Use when adding or changing FastAPI routes, dependencies, middleware, or API response behavior.

- Skill: `tomevault-io/fastapi-route-change-3` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/fastapi-route-change-3`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/fastapi-route-change-3/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/fastapi-route-change-3

---


# FastAPI Route Change

Follow `AGENTS.md` first.

## Workflow

1. Inspect neighboring route modules in `pubtator_link/api/routes/` and reuse existing dependency and error-response patterns.
2. Keep route handlers thin; place business behavior in `pubtator_link/services/`.
3. Validate request and response shapes with Pydantic models instead of ad hoc dictionaries.
4. Cover route behavior under `tests/test_routes/` and service behavior under `tests/unit/`.
5. For hosted-facing changes, check CORS, request-size, rate-limit, URL safety, and logging implications.
6. Run the focused route/service tests, then `make ci-local` before handoff.

---
> Source: [berntpopp/pubtator-link](https://github.com/berntpopp/pubtator-link) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-22 -->

