GET {{baseUrl}}/mocks/{{mockId}}
Gets information about a mock server.
Body
PARAM
Key | Datatype | Required | Description |
HEADERS
Key | Datatype | Required | Description |
RESPONSES
status OK
{
"mock": {
"id": "e3d951bf-873f-49ac-a658-b2dcb91d3289",
"owner": "12345678",
"uid": "12345678-e3d951bf-873f-49ac-a658-b2dcb91d3289",
"collection": "12345678-12ece9e1-2abf-4edc-8e34-de66e74114d2",
"mockUrl": "https://e3d951bf-873f-49ac-a658-b2dcb91d3289.mock.pstmn.io",
"name": "Test Mock",
"config": {
"headers": [],
"matchBody": false,
"matchQueryParams": true,
"matchWildcards": true,
"delay": {
"type": "fixed",
"duration": 140000
},
"serverResponseId": "94d0f5d9-dbdf-4046-9a7d-a11f9b78ac65"
},
"createdAt": "2022-07-25T20:54:30.000Z",
"updatedAt": "2022-07-25T20:54:30.000Z",
"isPublic": false, // If true, the mock server is public and visible to all users. This field does not indicate the mock server's access control status.
"deactivated": false,
"environment": "12345678-5daabc50-8451-43f6-922d-96b403b4f28e"
}
} |
ENDPOINTS