Chaotic is able to generate a http client from OpenAPI schema. You declare API of the endpoint in OpenAPI format and chaotic generates parsers, serializers and a client for you.
Quickstart
First, define OpenAPI schema in one or multiple yaml files.
The client logic may be extended with middlewares. Middleware's code can be executed before the request is sent to the server and after it is processed.
Logging
If you want to log every in/out client body, use logging middleware in static config:
test-client:
middlewares:
logging:
request_level: info # log level to log request body
response_level: warning # log level to log response body
body_limit: 10000 # trim body to max size
Dynamic Quality-of-service configs (QOS)
Clients may fetch attempts and retries from dynamic config. Use qos-{client_name} middleware in static config (change "test-client" to your client name):