Skip to content

Lupa API Reference / network/types / NetworkRegisterPayload

Interface: NetworkRegisterPayload

Defined in: src/network/types.ts:177

Payload sent to register a new network mock.

Properties

id

id: number

Defined in: src/network/types.ts:181

Unique identifier for the new mock.


matcher

matcher: SerializedMatch

Defined in: src/network/types.ts:186

Serialized matching criteria.


times?

optional times?: number

Defined in: src/network/types.ts:191

Optional maximum number of times to apply the mock.