fastai / ghapi

A delightful and complete interface to GitHub's amazing API
https://ghapi.fast.ai/
Apache License 2.0
610 stars 63 forks source link

Is the build library generalizble to other APIs that follow the OpenAPI spec? #67

Closed safeaim closed 3 years ago

safeaim commented 3 years ago

Hi,

Looking at the code in https://github.com/fastai/ghapi/blob/master/ghapi/build_lib.py it would seem that this code could be used for other APIs as well, that are not Github-related, is this correct? Or am I misunderstanding something here?

Regards, Safet

jph00 commented 3 years ago

Yes I'd expect so, although I only handle enough of OpenAPI to deal with what's actually used in the GH API. The stuff in core.py should also work for other OpenAPI projects.

If you try using these for other APIs, please let me know how it goes!