Skip to content

Instantly share code, notes, and snippets.

@syossan27
Last active May 16, 2019 11:05
Show Gist options
  • Save syossan27/776fe9b094ade80d9770aacc3c67ad98 to your computer and use it in GitHub Desktop.
Save syossan27/776fe9b094ade80d9770aacc3c67ad98 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