Skip to main content

GetMocks

Properties

NameTypeRequiredDescription
mocksGetMocksMocks[]

GetMocksMocks

Information about the mock servers.

Properties

NameTypeRequiredDescription
idstringThe mock server's ID.
ownerstringThe ID of mock server's owner.
uidstringThe mock server's unique ID.
collectionstringThe unique ID of the mock's associated collection.
mockUrlstringThe mock server URL.
configMocksConfigInformation about the mock server's configuration.
createdAtstringThe date and time at which the mock server was created.
environmentstringThe mock server's associated environment ID.
isPublicbooleanIf true, the mock server is public and visible to all users. This field does not indicate the mock server's access control status.
namestringThe mock server's name.
updatedAtstringThe date and time at which the mock server was last updated.

MocksConfig

Information about the mock server's configuration.

Properties

NameTypeRequiredDescription
delayDelayInformation about the mock server's simulated network delay settings. This returns a null value if there are no configured network delay settings.
headersstring[]A list of the mock server's headers.
matchBodybooleanIf true, match the request body.
matchQueryParamsbooleanIf true, match query parameters.
matchWildcardsbooleanIf true, use wildcard variable matching.
serverResponseIdstringThe ID of mock server's default response for requests. All calls to the mock server will return the defined response.

Delay

Information about the mock server's simulated network delay settings. This returns a null value if there are no configured network delay settings.

Properties

NameTypeRequiredDescription
typeDelayTypeThe type of simulated delay value: - fixed — The delay value is a fixed value.
presetPresetThe simulated fixed network delay value: - 1 — 2G (300 ms). - 2 — 3G (100 ms). The object does not return this value for custom delay values.
durationnumberThe configured delay, in milliseconds.

DelayType

The type of simulated delay value: - fixed — The delay value is a fixed value.

Properties

NameTypeRequiredDescription
FIXEDstring"fixed"

Preset

The simulated fixed network delay value: - 1 — 2G (300 ms). - 2 — 3G (100 ms). The object does not return this value for custom delay values.

Properties

NameTypeRequiredDescription
_1string"1"
_2string"2"

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →