Skip to main content

⚙️ REST Configuration

KeyTypeRequiredDescription
qabase.rest.base-urlstringBase URL for the API (e.g. https://gorest.co.in/public/v2)
qabase.rest.headers.content-typestringoptionalDefault Content-Type header for REST requests
qabase.rest.headers.acceptstringoptionalDefault Accept header for REST requests
qabase.rest.headers.authorizationstringoptionalDefault 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.