next-rest-framework icon indicating copy to clipboard operation
next-rest-framework copied to clipboard

Type-safe, self-documenting APIs for Next.js

Results 16 next-rest-framework issues
Sort by recently updated
recently updated
newest added

This is a request for ideas. Overall the structure of `next-rest-framework` is a perfect companion to the App Router for detailed control of each API method. But for concerns which...

enhancement

Looking for options to put API documentation behind auth. Is this just a matter of wrapping the `GET` returned by `docsRoute`? There's also the matter of protecting the `openapi.json`.

If I add `import "server-only"` to a dependency used by a `next-rest-framework` endpoint, the endpoint is ignored and omitted from the spec. Is this a known issue?

```typescript import { route, routeOperation, TypedNextResponse } from 'next-rest-framework'; import { z } from 'zod'; import { db } from '@/libs/DB'; import { authors } from '@/models/BooksSchema.tables'; import { AddAuthorSchema...

It's my first time use this package I'm using next app router,and I setting up endpoint file as the docs say like: ``` // src/app/api/v2/route.ts import { docsRoute } from...

[ Pino](https://github.com/pinojs/pino-nextjs-example) could do a good job.

enhancement
help wanted

With some recent changes, most of the logic is now performed by the CLI commands `generate` and `validate` that lowered the test coverage significantly. These commands are unfortunately not unit...

help wanted
good first issue

As above, everything's working fine but all my Next JS (App Router) API endpoints have /route.cjs appended to them in the generated openapi output when I run the CLI generate...

Bumps [zod](https://github.com/colinhacks/zod) from 3.22.2 to 3.22.3. Release notes Sourced from zod's releases. v3.22.3 Commits: 1e23990bcdd33d1e81b31e40e77a031fcfd87ce1 Commit 9bd3879b482f139fd03d5025813ee66a04195cdd docs: remove obsolete text about readonly types (#2676) f59be093ec21430d9f32bbcb628d7e39116adf34 clarify datetime ISO 8601...

dependencies