Closed ggarcia-civis closed 4 years ago
I have a few fixes to make, one moment
Okay, ready for review when you all are @patr1ckm @elsander
Also, don't forget to update the changelog!
I think I covered all the previous comments. Let me know if I missed anything.
LGTM! Approving because APIClient
already has an api_key
parameter.
Adding ServiceClient() method which takes a service id, optional base path (default is None), and optional swagger endpoint (default is '/endpoints'), then creates a client from the api spec and endpoints.
A lot of the work is being done in the helper functions and Endpoint class for the original APIClient, but small changes were needed in a few cases (mostly in regards to the url and making requests). These changes are overridden by the ServiceClient and ServiceEndpoint class.