swaggerconformance.client module¶
A client for accessing a remote swagger-defined API.
-
class
swaggerconformance.client.
Client
(schema_path, codec=None)[source]¶ Bases:
object
Client to use to access the Swagger application according to its schema.
Parameters: - schema_path (str) – The URL of or file path to the API definition.
- codec (codec.CodecFactory or None) – Used to convert between JSON and objects.
-
api
¶ The API accessible from this client.
Return type: schema.Api
-
request
(operation, parameters)[source]¶ Make a request against a certain operation on the API.
Parameters: - operation (schema.Operation) – The operation to perform.
- parameters (dict) – The parameters to use on the operation.
Return type: