-
Notifications
You must be signed in to change notification settings - Fork 28
feat(csharp): Add WithHTTPInfo method derivatives #5715
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
Conversation
✔️ Code generated!
📊 Benchmark resultsBenchmarks performed on the method using a mock server, the results might not reflect the real-world performance.
|
e2cd0a9 to
5706781
Compare
f3b5644 to
1e97906
Compare
Fluf22
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great
It would be perfect if we could find a way to test it, next!
shortcuts
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good at first glance, gg! but @morganleroi knows better
| {{#isDeprecated}} | ||
| [Obsolete] | ||
| {{/isDeprecated}} | ||
| public async Task<AlgoliaHttpResponse>{{operationId}}WithHTTPInfoAsync({{#allParams}}{{{dataType}}} {{paramName}}{{^required}}{{#optionalMethodArgument}} = default{{/optionalMethodArgument}}{{/required}}{{^-last}}, {{/-last}}{{/allParams}}{{#allParams.0}}, {{/allParams.0}}RequestOptions options = null, CancellationToken cancellationToken = default) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if the async should be before the WithHTTPInfo or not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I kept WithHTTPInfo before async in Java templates too
… [skip ci] Co-authored-by: Mario-Alexandru Dan <marioalexandrudan@gmail.com>
algolia/api-clients-automation#5715 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Mario-Alexandru Dan <marioalexandrudan@gmail.com>
🧭 What and Why
We should expose derivative of each operation with a WithHTTPInfo suffix that returns the raw HTTP response from the API so that can be evaluated when needed (status code access, for example)
🎟 JIRA Ticket API-136:
https://algolia.atlassian.net/browse/API-136?actionerId=62a8b1d6bf7afc006f3b6d9c&sourceType=assign
Changes included:
🧪 Test