ossinsight
ossinsight copied to clipboard
Generate API documents according to query configuration
Generate API documents according to the Query definition file to display on the website.
- [x] Add initial docs template: https://ossinsight.io/docs/
- [x] Add a parameter like
public: booleanto control whether the query is provided for external use as an exposed API (#834) - [x] Add
descriptionfields to the query definition to add text description for API (#834) - [ ] Write a script to generate MDX document
- [x] Support defines API as legacy (Better to have) (#855)
- [x] Support multiple-level query definition file (Better to have) (#861)
Next, open collections api
Could use OpenAPI as internal document:
params.json -> OpenAPI.json -> swagger ui
How about docusaurus-plugin-openapi - Docusaurus OpenAPI, this requires docusaurus-v2: (we are currently using v2-beta.14)
https://www.npmjs.com/package/docusaurus-plugin-openapi
in fact, there actually are some exciting features like “breadcrumb navigation”:

it sounds nice

We could preview docs at https://redocly.github.io/redoc/?url=https://api.ossinsight.io/openapi.yaml
@Mini256 Now docusaurus is v2.0, how about trying https://github.com/cloud-annotations/docusaurus-openapi