setup_client#

ApiClient.setup_client(models)#

Set up the client for use and register models for serialization and deserialization.

This step must be completed prior to using the ApiClient class.

Parameters:
modelsModuleType

Module containing models generated by the Swagger code generator tool.

Examples

>>> client = ApiClient(requests.Session(),
...                    'http://my-api.com/API/v1.svc',
...                    SessionConfiguration())
... import ApiModels as model_module
... client.setup_client(model_module)