# GRPC

Generate go code from Protocol Buffers.
Also generate OpenAPI documentation.

To use this, just add a file service.proto.


## OpenAPI

I found docs for the OpenAPI extension at [their source](https://github.com/googleapis/googleapis/blob/master/google/api/http.proto).

## Development

Modify .proto files. Then run:

	make generate

To regenerate the proto files, ensure you have installed the generate dependencies:

```bash
$ make install
go install \
        ../vendor/github.com/gogo/protobuf/protoc-gen-gogo \
        ../vendor/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway \
        ../vendor/github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger \
        ../vendor/github.com/mwitkow/go-proto-validators/protoc-gen-govalidators
```

It also requires you to have the Google Protobuf compiler `protoc` installed.
Please follow instructions for your platform on the
[official protoc repo](https://github.com/google/protobuf#protocol-compiler-installation).
