EndpointDescriptor

@Serializable
data class EndpointDescriptor(val key: EndpointKey, val config: EndpointConfig, val availableResponses: List<MockResponse>)

Represents the static descriptor for an available endpoint and its mock responses.

This data class combines endpoint configuration and discovered response files to provide a complete, immutable view of an endpoint's mocking capabilities. It is primarily used by the UI layer to display available endpoints and their configurations.

Runtime selection state is intentionally excluded from this model. It changes on every user interaction and belongs in the UI layer paired with this descriptor, keeping this class safe to snapshot, store, and pass freely without going stale.

UI Usage

The UI uses this model to display:

  • Endpoint name and path

  • List of available mock responses

See also

Constructors

Link copied to clipboard
constructor(key: EndpointKey, config: EndpointConfig, availableResponses: List<MockResponse>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

List of discovered mock response files for this group + environment + endpoint combination

Link copied to clipboard

The effective endpoint configuration after override resolution

Link copied to clipboard

The EndpointConfig.id for this endpoint. Convenience accessor for EndpointKey.endpointId.

Link copied to clipboard

The EnvironmentConfig.id this descriptor was resolved for. Convenience accessor for EndpointKey.environmentId.

Link copied to clipboard

The ApiGroupConfig.id this endpoint belongs to. Convenience accessor for EndpointKey.groupId.

Link copied to clipboard

The EndpointKey uniquely identifying this endpoint within its group and environment