No longer maintained
Apidoc syntax is very easy and lightweight, whereas Openapi aka Swagger syntax is very verbose and not noob friendly. The goal of this project is to make documenting api endpoints so easy that developers won't mind spending the time to do it, instead of just ignoring documentation.
Convertable Annotations:
@api
@apiName
@apiGroup
@apiParam
@apiSuccess
Feel free to PR in any other annotations you need.
pip install apidoc-to-openapi
usage: apidoc_to_openapi [-h] -i path [-o path] [--yaml]
optional arguments:
-h, --help show this help message and exit
-o path File output (default: stdout)
--yaml Convert output to yaml format
Required:
-i path File or directory containing apidoc annotations
apidoc-to-openapi -i ./my/path/ -o ./my/path/swagger.yaml --yaml
Used pytest for testing. Test coverage isn't near where I want it to be.
Using black formatter and pylint
- Graham Thomas - Initial work
This project is licensed under the MIT License - see the LICENSE.md file for details
- I have no friends