⚙️ REST Configuration
| Key | Type | Required | Description |
|---|---|---|---|
qabase.rest.base-url | string | ✅ | Base URL for the API (e.g. https://gorest.co.in/public/v2) |
qabase.rest.headers.content-type | string | optional | Default Content-Type header for REST requests |
qabase.rest.headers.accept | string | optional | Default Accept header for REST requests |
qabase.rest.headers.authorization | string | optional | Default Authorization header for REST requests |
Example (application.yaml)
qabase:
rest:
base-url: "https://gorest.co.in/public/v2"
headers:
content-type: "application/json"
accept: "application/json"
authorization: "Bearer your-token"
Use the headers block for default, reusable values that should apply across many requests, especially environment-driven values such as auth tokens or shared JSON conventions.
When a single test needs something different, you can still override headers at the request level in code. The config gives you a clean default baseline without taking away per-request control.