Skip to content

Lupa API Reference / network/types / NetworkRegisterPayload

Interface: NetworkRegisterPayload

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

Payload sent to register a new network mock.

Properties

id

id: number

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

Unique identifier for the new mock.


matcher

matcher: SerializedMatch

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

Serialized matching criteria.


times?

optional times?: number

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

Optional maximum number of times to apply the mock.