Skip to content

Instantly share code, notes, and snippets.

@syossan27
Last active May 16, 2019 10:51
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/e3e959f1721461ff978126d58ae03069 to your computer and use it in GitHub Desktop.
Save syossan27/e3e959f1721461ff978126d58ae03069 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