Skip to content
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

feat(batch): add support for batch GET calls #64

Closed
wants to merge 1 commit into from
Closed

feat(batch): add support for batch GET calls #64

wants to merge 1 commit into from

Conversation

pkuhner
Copy link

@pkuhner pkuhner commented Apr 26, 2018

This PR adds support for batch GET calls, e.g. retrieving multiple records in a single request:

GET /domain/zone/example.com/record/123456788,123456789,...

Batch calls require a HTTP header X-Ovh-Batch specifying the split character (e.g. ,).

Signed-off-by: Pierre Kuhner pierre.kuhner@corp.ovh.com

Copy link
Member

@rbeuque74 rbeuque74 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello,
Thanks for your contribution, please have a look to those points :)

ovh/client.py Outdated
if kwargs:
kwargs = self._canonicalize_kwargs(kwargs)
batch = kwargs.pop('batch', None)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would change it to _batch like we did with _need_auth to prevent conflicts with actual body parameters

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@geoffreybauduin
Copy link
Member

And don't forget to sign your commit, in order to respect our contribution guidelines (https://github.com/ovh/python-ovh/blob/master/CONTRIBUTING.rst#contributing-to-python-ovh)

Signed-off-by: Pierre Kuhner <pierre.kuhner@corp.ovh.com>
@pkuhner
Copy link
Author

pkuhner commented May 30, 2018

batch has been renamed to _batch and commit is now signed 🙂

@HugoDelval
Copy link

👍

@pkuhner
Copy link
Author

pkuhner commented Mar 6, 2020

Closing this as it pollutes my PR tab.

@pkuhner pkuhner closed this Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants