-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Response codes and descriptions in Swagger docs #304
Comments
@arun0009, can you be a little bit more specific about what output changes you would like to see in the swagger docs? Maybe you could put together a PR that has a first pass on some of the ideas? |
Right now, all the responses show up as 200, but it would be nice to have other response messages like 404, 500, 201 & other http response codes with user specified descriptions. I will try and submit a PR over the weekend. |
This likely implies options outside of google.api.http annotations. |
Here is a more literate example of the idea:
would be nice if within the proto file we could add
which could translate to
What do you think, is this information passed along the proto services slice? |
@arun0009 / @morriswinkler-simplesurance -- that suggestion may work for the 200 path but custom proto would be required pretty rapidly IMO |
This effort should continue in #145 |
Agreed, @johanbrandhorst. How can I help you get that PR in? |
Extends the openapiv2 protofile to allow control over response objects. Fixes grpc-ecosystem#304
I've opened #663 to help with this. |
Extends the openapiv2 protofile to allow control over response objects. Fixes grpc-ecosystem#304
Extends the openapiv2 protofile to allow control over response objects. Fixes grpc-ecosystem#304
Extends the openapiv2 protofile to allow control over response objects. Fixes grpc-ecosystem#304
Extends the openapiv2 protofile to allow control over response objects. Fixes grpc-ecosystem#304
Extends the openapiv2 protofile to allow control over response objects. Fixes grpc-ecosystem#304
Extends the openapiv2 protofile to allow control over response objects. Fixes grpc-ecosystem#304
Extends the openapiv2 protofile to allow control over response objects. Fixes grpc-ecosystem#304
Extends the openapiv2 protofile to allow control over response objects. Fixes grpc-ecosystem#304
Extends the openapiv2 protofile to allow control over response objects. Fixes grpc-ecosystem#304
Extends the openapiv2 protofile to allow control over response objects. Fixes grpc-ecosystem#304
Extends the openapiv2 protofile to allow control over response objects. Fixes grpc-ecosystem#304
Extends the openapiv2 protofile to allow control over response objects. Fixes grpc-ecosystem#304
Extends the openapiv2 protofile to allow control over response objects. Fixes #304
Extends the openapiv2 protofile to allow control over response objects. Fixes grpc-ecosystem#304
It would be nice if we can specify rest response codes/descriptions via some grpc gateway annotations or some other means.
The text was updated successfully, but these errors were encountered: