Skip to content

Lupa API Reference / network/types / NetworkRegisterPayload

Interface: NetworkRegisterPayload ​

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

Payload sent to register a new network mock.

Properties ​

id ​

id: number

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

Unique identifier for the new mock.


matcher ​

matcher: SerializedMatch

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

Serialized matching criteria.


times? ​

optional times?: number

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

Optional maximum number of times to apply the mock.