Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically generate API documentation #38

Open
rhmdnd opened this issue Jun 3, 2022 · 2 comments
Open

Automatically generate API documentation #38

rhmdnd opened this issue Jun 3, 2022 · 2 comments
Labels
api Functionality related to the API documentation Improvements or additions to documentation

Comments

@rhmdnd
Copy link
Owner

rhmdnd commented Jun 3, 2022

Initially, the compliance service is going to focus on exposing a gRPC API.

Can we find a tool that will generate the documentation for our API endpoints?

https://github.com/gendocu-com/grpc-docs/

@rhmdnd rhmdnd added the documentation Improvements or additions to documentation label Jun 3, 2022
@jhrozek
Copy link
Collaborator

jhrozek commented Jun 4, 2022

I did a bit of research and haven't found anything better as long as we use a straight up grpc and not a swagger/openapi definition.

For a bit I played around with gnostic which is normally used to generate protobuf from openAPI, but together with its report tool, it should work the other way around, but I couldn't get the report tool to work for anything else than the example .pb files..

There's also protoc-gen-doc which works fine for protobufs, but not grpc..

@jhrozek
Copy link
Collaborator

jhrozek commented Jun 4, 2022

at least the good thing about grpc-docs is that it's packaged as a docker container, so we could potentially add a make target that would just start the grpc-docs server..

@rhmdnd rhmdnd added the api Functionality related to the API label Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Functionality related to the API documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants