Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move to OpenAPI for documentation #1

Open
deezone opened this issue Dec 18, 2019 · 0 comments
Open

Move to OpenAPI for documentation #1

deezone opened this issue Dec 18, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@deezone
Copy link
Owner

deezone commented Dec 18, 2019

Due to security issues with the aglio package the API documentation needs to be moved to OpenAPI / Swagger format.

Create documentation in openapi.yaml using OpenAPI Editor for JetBrains (GoLand): https://plugins.jetbrains.com/plugin/12887-openapi-editor/

Add:

"scripts": {
    "generate-api-docs": "node_modules/.bin/redoc-cli bundle docs/openapi.yaml -o docs/api-output.html",
    "docs:watch": "node_modules/.bin/redoc-cli serve docs/openapi.yaml -w",
   ...
}

References:

# Before
$ node ./node_modules/.bin/mocha

# Now with npx:
$ npx mocha
@deezone deezone added the enhancement New feature or request label Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant