Last active
May 16, 2019 11:03
-
-
Save syossan27/04d2bef5959f5d38aea1e72bebeeed01 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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