Skip to content

Instantly share code, notes, and snippets.

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