teunmooij

create api docs

by teunmooij
payload-tools
APIs & SDKs
v1
^1.9.0
MIT

Overview

Summary generated from the README

A command line tool that generates OpenAPI 3 documentation for a Payload CMS project. It is run from the repository root with npx or added as a dev dependency for build pipelines. It relies on the payload-openapi package for generation, so that package's options apply. Targets Payload 1.x.

Features

  • Generates OpenAPI 3 documentation from a Payload project
  • Runs from the repository root through npx
  • Supports command line options, listed via the help flag
  • Can be added as a dev dependency for build pipelines
  • Uses payload-openapi for generation and configuration

Use cases

  • Produce an OpenAPI specification for a Payload API during a build pipeline
  • Document a Payload REST API for consumers without writing a spec by hand

From the author

Create openapi docs for your payload cms

Installation

npm i create-payload-api-docs

142

Stars

15

Forks

13

Open Issues

2 years ago

Last Updated

0

Weekly Downloads

v1.4.0

npm Version

13.6 KB

Unpacked Size

7

Dependencies

Repository stars

Trends appear after 7 days of data. Daily snapshots have not started yet.

Shared by 5 plugins in teunmooij/payload-tools.

npm weekly downloads

Trends appear after 7 days of data. Daily snapshots have not started yet.

Each point is npm's rolling 7-day download count.

Health Score

35/100Fair

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/611765581-create-api-docs.svg)](https://payloaddirectory.dev/plugins/611765581-create-api-docs)
HTML
<a href="https://payloaddirectory.dev/plugins/611765581-create-api-docs"><img src="https://payloaddirectory.dev/badge/611765581-create-api-docs.svg" alt="Payload Directory"></a>
Updated Jul 17, 2024Created Mar 9, 2023Published Jul 15, 2023

README

author snyk downloads npm version license

create-payload-api-docs

CLI for generating openAPI 3 documentation for your payload cms.

Alternatives:

How to use

Run the following command from your payload repository root folder:

npx create-payload-api-docs

Or use the commandline option. To learn more:

npx create-payload-api-docs --help

If you intend to use this package in your build pipeline, it is recommended to add it to your repo as a dev dependency, to prevent duplicate dependency downloads.

npm i --save-dev create-payload-api-docs

More configuration options

create-payload-api-docs uses payload-openapi to generate the documentation. For more information about the available options, see payload-openapi documentation.

Version history

See changelog

Similar plugins