Open SiqingYu opened 4 years ago
@dellagustin
Hello @SiqingYu , I am not familiar enough with the service provided by swagger.io to judge the pros and cons, but I assume it is good for the visibility of the API. Nevertheless I advice to keep the file in source control as I mention here https://github.com/gpodder/mygpo/pull/361#issuecomment-586768480
Best Regards, Guilherme.
@dellagustin Agree. :smile:
Can't we simply download the latest pre-compiled swagger ui into the static folder, add openapi.yaml
in the same directory and make it available that way? There is no need for external hosting since all is static.
(dist
folder in the downloads at https://github.com/swagger-api/swagger-ui/releases)
@cweiske I don't see any problem with that. Normally I prefer to keep dependencies out of source control, but I can see that mygpo static folder already contains dependencies tracked on the repo, we would be following a pattern that is already in place.
Related to https://github.com/gpodder/mygpo/pull/361 and https://github.com/gpodder/mygpo/pull/122
We can host our OpenAPI documentation with a client-consumable YAML/JSON specification file on Swagger.io.
Swagger.io is commercial, and the free plan seems to offer enough features for us. I am trying to contact the SwaggerHub company to see if we can make a better deal, which might be easier for us because we are an open-source project.
To-Dos: