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

Add Batch/Bulk requests #6

Open
xMrAfonso opened this issue Nov 14, 2023 · 2 comments
Open

Add Batch/Bulk requests #6

xMrAfonso opened this issue Nov 14, 2023 · 2 comments

Comments

@xMrAfonso
Copy link

Hey there, firstly, love the library.

I might find time to work on this myself, but I would love to see batch requests added to the library.
This is possible since all google apis support batch requests.

Thanks.

@PhilippHeuer
Copy link
Contributor

Hi @xMrAfonso,

i took another look at the documentation at https://developers.perspectiveapi.com/s/about-the-api-methods?language=en_US, but it doesn't seem to support batching requests.
There are a few new attributes i can add though, so thanks for creating the issue.

If you find anything feel free to let me know or work on it yourself.
Just a little note because the contribution page on the documentation isn't complete yet.

  • The Code is generated from the openapi.yaml which i wrote (google doesn't provide one), so if you want to add requests, attributes, .. you would do so by editing the openapi spec.
  • Changes in the generated code would happen in the template in https://github.com/primelib/primecodegen and flow into all libraries.

@xMrAfonso
Copy link
Author

Hey @PhilippHeuer, if I understood correctly, they aren't documented in the perspectiveapi documentation but it works just like any google api.

Here is the documentation for batch requests, hope this helps.

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

No branches or pull requests

2 participants