Skip to content

Instantly share code, notes, and snippets.

@syossan27
Created May 16, 2019 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save syossan27/f94f9a0ace489654072a6b9bb6267278 to your computer and use it in GitHub Desktop.
Save syossan27/f94f9a0ace489654072a6b9bb6267278 to your computer and use it in GitHub Desktop.
service Sample {
rpc SampleAPI(Request) returns (Response) {
option (google.api.http) = {
get : "/sample"
};
option (grpc.gateway.protoc_gen_swagger.options.openapiv2_operation) = {
summary : "サンプル"
responses : {
key : "500"
value : {
description : "Internal Server Error"
schema : {json_schema : {ref : ".Errors.InternalErrorResponse"}}
}
}
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment