Skip to content

Basic API

The examples/basic-api package shows the generated app shape for a simple Routa API.

From the repository root:

Terminal window
pnpm install
pnpm --filter basic-api dev
src/routa.ts
src/routes/status/route.ts
src/routes/status/schemas.ts
src/routes/users/route.ts
src/routes/users/schemas.ts
src/routes/users/$userId/route.ts
src/routes/users/$userId/schemas.ts
src/routes/users/$userId/posts/route.ts
src/routes/users/$userId/posts/schemas.ts

Use this example to learn the baseline route-file pattern, route-local schemas, and generated metadata in .routa/.