EnvironmentConfig
Configuration for a single deployment environment within an ApiGroupConfig.
An environment represents one stage in the delivery pipeline (e.g. staging, production, development). It provides the resolved base URL for its parent ApiGroupConfig at that stage, and optionally customises the shared endpoint pool via endpointOverrides and additionalEndpoints.
Endpoint Resolution
When the active environment is matched during request interception, the effective endpoint list for this environment is built as follows:
Start with ApiGroupConfig.endpoints (the shared pool)
Apply endpointOverrides — each override merges into the matching shared endpoint by EndpointOverride.id; unspecified fields keep their shared value
Append additionalEndpoints — endpoints that only exist in this environment
Example
{
"id": "production",
"name": "Production",
"url": "https://api.example.com",
"endpointOverrides": [
{ "id": "getUser", "path": "/v1/users/{userId}/profile" }
],
"additionalEndpoints": [
{ "id": "getLegacyUser", "name": "Get Legacy User", "path": "/users/{userId}", "method": "GET" }
]
}See also
Constructors
Properties
Optional list of endpoints that only exist in this environment (e.g. staging-only debug endpoints). Defaults to an empty list.
Optional list of partial endpoint replacements. Each entry references a shared endpoint by EndpointOverride.id and overrides only the fields it specifies. Defaults to an empty list.