apinf / platform

Apinf - Open source API management platform with multi proxy and protocol support
https://apinf.com/
European Union Public License 1.1
74 stars 33 forks source link

Automate APInf platform APIs swagger creation #2647

Closed kyyberi closed 6 years ago

kyyberi commented 7 years ago

APInf Platform has currently one big API for dealing with users, APIs, organisations etc. A single Swagger file will be pulled from code comments automatically (see #2638). Aim is not to show one huge API in APInf catalog, but atm 2 APIs: APInf Catalog API and APInf Management API.

Thus we need to create script which will devide the big Swagger file into two separate Swagger files. Pulling methods from code to Swagger file does not provide good enough developer experience. Thus we need to inject more decriptive description in the beginning of both Swagger files. The descriptions are maintained in Github (specific folder and file names needs to defined).

Process roughly for APInf Catalog API:

Same process with APInf Management API.

matleppa commented 7 years ago

A part of these requirements are resolved in PR #2754 .

With this solution the changes needed in description texts need to be handled as issues. The optimal solution would be possibility to link e,g, *.md text files to files generating swagger documents, however it needs to be examined, if it is possible.

bajiat commented 6 years ago

Closing as resolved.