Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tmc/protoc-gen-apidocs

Generate beautiful documentation from your Protobuf descriptors.
https://github.com/tmc/protoc-gen-apidocs

go golang grpc protobuf

Last synced: 12 days ago
JSON representation

Generate beautiful documentation from your Protobuf descriptors.

Awesome Lists containing this project

README

        

# protoc-gen-apidocs

`protoc-gen-apidocs` is a very simple and customizable protoc generator that translates .proto files into clean and readable markdown format.

This is achieved by levearging the fantastic
[protogen](https://pkg.go.dev/google.golang.org/protobuf/compiler/protogen) library and Go's
built-in templating capabilties.

## Example Output

**Vehicle.proto example**

This example shows a variety of protobuf features including extensions and nested messages.

* [Output markdown](./testdata/example1/vehicle.md)
* [Source proto](./testdata/example1/vehicle.proto)

**Booking.proto example**

This example is relatively simple but shows streaming rpc endpoints properly handled.

* [Output markdown](./testdata/example1/booking.md)
* [Source proto](./testdata/example1/booking.proto)