UNPKG

next-openapi-gen

Version:

Automatically generate OpenAPI 3.0 documentation from Next.js projects, with support for TypeScript types and Zod schemas.

31 lines (30 loc) 737 B
export default { openapi: "3.0.0", info: { title: "API Documentation", version: "1.0.0", description: "This is the OpenAPI specification for your project.", }, servers: [ { url: "http://localhost:3000/api", description: "Local development server", }, ], components: { securitySchemes: { BearerAuth: { type: "http", scheme: "bearer", bearerFormat: "JWT", }, }, }, apiDir: "./src/app/api", schemaDir: "./src", schemaType: "typescript", docsUrl: "api-docs", ui: "scalar", outputFile: "openapi.json", includeOpenApiRoutes: false, };