-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Continue from #673
Next steps
- We need to add support for Open API Spec on lightning. use this library https://github.com/open-api-spex/open_api_spex
- After adding that library create a demo spec eg project_controller_spec.ex to show the structure
- generate openapi.yaml file and put it in a directory that can be fetch via http request, eg static/openapi.yaml
- In docs repo use
"docusaurus-plugin-openapi-docs": "^4.5.1", "docusaurus-theme-openapi-docs": "^4.5.1",to generate docs. In docusaurus.config.ts We can specify
plugins: [
[
'docusaurus-plugin-openapi-docs',
{
id: 'api',
docsPluginId: 'classic',
config: {
lightning: {
specPath: 'static/openapi.yaml',
outputDir: 'docs/api',
sidebarOptions: {
groupPathsBy: 'tag',
categoryLinkSource: 'tag',
},
},
},
},
],
],
- It's definitely easier to generating the docs on lightning, So i will have to figure out how to fetch the
openapi.yamlform lightning repo. Probably should look on adaptor generate script
Resources
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
No status