-
Notifications
You must be signed in to change notification settings - Fork 51
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
Add PostContent/PutContent overloads on IRESTFulApiFactoryClient #71
Comments
@BrianLParker What do you think about this proposal? |
@Catalin-Andronie what are you going to serialize the response to other than what's already in place? |
@hassanhabib For the OpenAI Audio endpoint, we can specify the response type (e.g: text, srt, vvt, json) in the request, which means the response cannot be serialized to JSON in all cases. Because of it, I propose two overloads:
@hassanhabib If you got other proposals I am open to not returning |
@BrianLParker @cjdutoit thoughts? |
Closing this, since now RESTFulSense has support to post a multipart-form. |
Next overloads on the
IRESTFulApiFactoryClient
allow for scenarios where multipart form-data payload can be sent to the server and still have the response validation is place.In some scenarios, it is useful to return the
HttpResponseMessage
directly and allow the client to deserialize the response. In other scenarios, theTResponse
is the expected type of deserialization.The text was updated successfully, but these errors were encountered: