EndpointKey

@Serializable
data class EndpointKey(val groupId: String, val environmentId: String, val endpointId: String)

A stable, value-type identifier for the triple (groupId, environmentId, endpointId).

This key uniquely addresses a single endpoint within a specific deployment environment of a specific API group. It is used everywhere the three identifiers travel together — as a map key, as a lookup token, and as the carrier inside MockMatch and EndpointDescriptor — so that callers always have named access to each component instead of relying on positional destructuring of a raw Triple.

Composite string key

Use compositeKey to obtain the "{groupId}-{environmentId}-{endpointId}" string required by DataStore and com.worldline.devview.networkmock.core.model.NetworkMockState:

val key = EndpointKey("my-backend", "staging", "getUser").compositeKey
// "my-backend-staging-getUser"

See also

Constructors

Link copied to clipboard
constructor(groupId: String, environmentId: String, endpointId: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The canonical "{groupId}-{environmentId}-{endpointId}" string used as a DataStore preference key suffix and as the key in com.worldline.devview.networkmock.core.model.NetworkMockState.endpointStates.

Link copied to clipboard

The EndpointConfig.id (e.g. "getUser")

Link copied to clipboard

The EnvironmentConfig.id (e.g. "staging")

Link copied to clipboard

The ApiGroupConfig.id (e.g. "my-backend")