Skip to content

Tool to create an openApi spec for payload 3

License

Notifications You must be signed in to change notification settings

amboss-mededu/payload-3-openapi-tools

 
 

Repository files navigation

@amboss/payload-3-openapi

A plugin for Payload CMS that generates OpenAPI documentation for your API endpoints.

Installation

pnpm add -D github:amboss-mededu/payload-3-openapi-tools

Usage

  1. Add the following script to your package.json:
{
    "scripts": {
        "generate:openapi-docs": "tsx node_modules/@amboss/payload-3-openapi/dist/create-api-docs/index.js $(pwd)/path/to/your/payload.config.ts"
    }
}
  1. Run the script to generate OpenAPI documentation:
pnpm generate:openapi-docs

This will generate OpenAPI documentation based on your Payload CMS configuration file.

License

MIT

About

Tool to create an openApi spec for payload 3

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%