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

DataBridgesAPI requests library #2

Closed
4 tasks
ValerioGiuffrida opened this issue Mar 16, 2023 · 2 comments · Fixed by #3
Closed
4 tasks

DataBridgesAPI requests library #2

ValerioGiuffrida opened this issue Mar 16, 2023 · 2 comments · Fixed by #3
Assignees
Labels
enhancement New feature or request

Comments

@ValerioGiuffrida
Copy link
Contributor

Revise the code as a library to get data from the various endpoints.

  • manage credentials
  • refresh token
  • update endpoints dictionary
  • extend endpoint methods

Also see #1

@ValerioGiuffrida
Copy link
Contributor Author

@paololucchino @angeladiperna <- For your information!

@martinig94 thanks for your best effort on this!!

@ValerioGiuffrida ValerioGiuffrida added the enhancement New feature or request label Mar 16, 2023
@martinig94 martinig94 linked a pull request Mar 19, 2023 that will close this issue
@paololucchino
Copy link
Member

Thanks @ValerioGiuffrida for creating this and @martinig94 for the recent additions.

I'm looking into the possibility of automatically creating a complete python client (and potentially other languages too) based on the swagger.json. If curious: https://openapi-generator.tech/docs/installation for info.

I created one based on the swagger in catalog.api.wfp.org in a branch here: https://github.com/WFP-VAM/DataBridgesAPI/tree/use-open-api-generator . I just need to get some credentials to try it out. Will let you know how it goes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants