Reste client Configuration
This file defines how DevOps Overseer connects to a REST API using its configuration.
If mostly contains the usual REST API client settings in addition of some internal commodities (like the include
field).
The authentication settings are defined in there own documentation due to multiple features of redirection and reusability for local users that are clearly out of scope for this configuration documentation.
General fields
include
include:
- "~/.devops-overseer/confluence-cloud.yml"
- "./.devops-overseer/confluence-cloud.yml"
- "~/.config/devops-overseer/confluence-cloud.yml"
- "~/.config/devops-overseer/configs/clients/confluence-cloud.yml"
$HOME/.devops-overseer/
- Project-specific config in ./.devops-overseer/
- Centralized config in $HOME/.config/devops-overseer/
Usually the credentials configuration will be stored in those, as for base-urls, because they change from user to user and are defined in the user specific fields section.
logger
logger:
name: confluence-cloud
name
: name for the logger instance. Used for filtering, formatting, or sending logs to specific outputs.
user-agent
user-agent: devops-overseer-RestClient/1.0
User-Agent
header attached to all requests.
- Default/Example: "devops-overseer-RestClient/1.0"
timeout
timeout: 15.0
max-retries
max-retries: 3
backoff-factor
backoff-factor: 0.5
backoff-factor: 0.5
, retries will wait 0.5s
, 1s
, 2s
, etc.
extra-headers
extra-headers:
endpoints
endpoints:
myself:
path: /rest/api/3/myself
myself
directly)..
- Example:
- myself
: the myself
example is often present in REST APIs giving access to your own profile (like Atlassian for example).
- path
: relative URL path (/rest/api/3/myself
).
User specific fields
base-url
base-url: <base-url>
base-url
is literally the base url when you visit you tool instance.
- Default/Example: "https://api.github.com"
for github.
credentials
credentials:
credentials
contains the credentials/authentication configuration and is defined in the credentials documentation page.