You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems currently we can only set requestor auth configurations for all APIs, any ideas about how to handle different API calls with different auth configuration?
importrequests_openapi# load spec from urlc=requests_openapi.Client().load_spec_from_url("https://raw.githubusercontent.com/master/examples/v3.0/petstore.yaml")
# custom session for auth or othersc.requestor# a instance of requests.Session, see https://requests.readthedocs.io/en/latest/user/advanced/#session-objects# set update tokenc.requestor.headers.update({"Authorization": "token"})
The text was updated successfully, but these errors were encountered:
Parameters starts with '_' or not found in openapi spec, will be passed through to the requesting.
How about c.createPets(json={xx}, _headers={auth config in header}, _params={}, _cookies={or auth config in cookie})? @SLdragon
Seems currently we can only set requestor auth configurations for all APIs, any ideas about how to handle different API calls with different auth configuration?
The text was updated successfully, but these errors were encountered: