@anli/api-doc

3.0.1 • Public • Published

API Doc

API Doc creates API Documentation written in OpenAPI Specification (OAS).

Getting started

Initialize the project

mkdir tmp
cd tmp
npm init -y
npm install @anli/api-doc
npx api-doc-init

Create the passphrase in the .env file

echo "PASSWORD=your-password" >> .env

Update src/index.html and/or src/open-api.yaml accordingly

Build the documentation

npx api-doc

View the documentation

open dist/index.html

Features

  • Generate API Documentation from .yaml file
  • View with SwaggerUI
  • Protected with AES-256 encryption passphrase

Contributing

If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.

Links

Licensing

The code in this project is licensed under MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i @anli/api-doc

Weekly Downloads

2

Version

3.0.1

License

MIT

Unpacked Size

22.5 kB

Total Files

10

Last publish

Collaborators

  • anli