Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 509 Bytes

README.md

File metadata and controls

26 lines (20 loc) · 509 Bytes

protoc-gen-endpoint

protoc-gen-endpoint is a protobuf plugin that allows generating extra information for google.api.http.

Usage

service Server {
    rpc Foo(Bar) returns (Baz) {
        option (google.api.http) = {
            get: "/v1/foo"
        };
        option (proto.endpoint) = {
            unauthenticated: true
        };
    }
}

Once protoc-gen-endpoint is installed in $PATH, the program can be used with protoc via the flag: --endpoint_out

License

BSD 3 clause