Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upFeature req: live swagger doc #2392
Comments
brian-brazil
added
kind/documentation
priority/P3
labels
Jul 14, 2017
This comment has been minimized.
This comment has been minimized.
|
@fabxc Do we have this now? |
brian-brazil
added
component/documentation
and removed
kind/documentation
labels
Nov 14, 2017
This comment has been minimized.
This comment has been minimized.
|
I have used swagger and I find it super useful. The current v2 protobuf file is used to auto-generated swagger definition for v1 we would need to write the swagger definition which will generate the go skeleton and just need to implement each function. It would be a bit of work as it also enforces its own types. I think it also handles api versioning quite well. The only drawback I remember was that the auto-generated function names and data types tend to become rather long and difficult to edit without a proper IDE auto-completion support. |
This comment has been minimized.
This comment has been minimized.
|
btw it also autogenerates the docs for the api so it saves a ton of work there. |
This comment has been minimized.
This comment has been minimized.
fkromer
commented
Apr 4, 2018
|
Would be great if one could auto generate clients for the Query HTTP API e.g. for Python with bravado. That would save tons of work as well |
pswenson commentedFeb 2, 2017
IMO prometheus should have live/interactive swagger doc for the API ala: http://petstore.swagger.io