Skip to main content

3 posts tagged with "Guide"

Walkthroughs and how-tos.

View All Tags

Plain route handlers vs. nextjs-nestapi: a side-by-side comparison

· 5 min read
Author of nextjs-nestapi

Next.js App Router route handlers are just functions — GET, POST, whatever you export. That's the whole appeal: no framework, no ceremony, straight to the Web Request/Response APIs. It's also exactly where the pain starts once an API grows past two or three endpoints. This post builds the same small Post resource twice — once with plain route handlers, once with nextjs-nestapi — and compares what actually changed.

Auto-generate OpenAPI docs from your decorators

· 2 min read
Author of nextjs-nestapi

If you're already annotating controllers with @Controller, @Get/@Post, and @Body(DtoClass), you've already written most of what an OpenAPI document needs. This post shows how nextjs-nestapi turns that into a live spec and a Swagger UI, with no separate documentation step to keep in sync.