Download OpenAPI specification:
Documentation and API specification GripMock.
The list is needed to quickly find used stubs
[- {
- "id": "51c50050-ec27-4dae-a583-a32ca71a1dd5",
- "service": "Gripmock",
- "method": "SayHello",
- "priority": 0,
- "headers": {
- "equals": {
- "property1": "string",
- "property2": "string"
}, - "contains": {
- "property1": "string",
- "property2": "string"
}, - "matches": {
- "property1": "string",
- "property2": "string"
}
}, - "input": {
- "ignoreArrayOrder": false,
- "equals": { },
- "contains": { },
- "matches": { }
}, - "inputs": [
- {
- "ignoreArrayOrder": false,
- "equals": { },
- "contains": { },
- "matches": { }
}
], - "output": {
- "data": { },
- "stream": [
- { }
], - "headers": {
- "property1": "string",
- "property2": "string"
}, - "error": "Message not found",
- "code": 3,
- "delay": "1s"
}
}
]
The list is needed to quickly find unused stubs
[- {
- "id": "51c50050-ec27-4dae-a583-a32ca71a1dd5",
- "service": "Gripmock",
- "method": "SayHello",
- "priority": 0,
- "headers": {
- "equals": {
- "property1": "string",
- "property2": "string"
}, - "contains": {
- "property1": "string",
- "property2": "string"
}, - "matches": {
- "property1": "string",
- "property2": "string"
}
}, - "input": {
- "ignoreArrayOrder": false,
- "equals": { },
- "contains": { },
- "matches": { }
}, - "inputs": [
- {
- "ignoreArrayOrder": false,
- "equals": { },
- "contains": { },
- "matches": { }
}
], - "output": {
- "data": { },
- "stream": [
- { }
], - "headers": {
- "property1": "string",
- "property2": "string"
}, - "error": "Message not found",
- "code": 3,
- "delay": "1s"
}
}
]
The list of stubs is required to view all added stubs
[- {
- "id": "51c50050-ec27-4dae-a583-a32ca71a1dd5",
- "service": "Gripmock",
- "method": "SayHello",
- "priority": 0,
- "headers": {
- "equals": {
- "property1": "string",
- "property2": "string"
}, - "contains": {
- "property1": "string",
- "property2": "string"
}, - "matches": {
- "property1": "string",
- "property2": "string"
}
}, - "input": {
- "ignoreArrayOrder": false,
- "equals": { },
- "contains": { },
- "matches": { }
}, - "inputs": [
- {
- "ignoreArrayOrder": false,
- "equals": { },
- "contains": { },
- "matches": { }
}
], - "output": {
- "data": { },
- "stream": [
- { }
], - "headers": {
- "property1": "string",
- "property2": "string"
}, - "error": "Message not found",
- "code": 3,
- "delay": "1s"
}
}
]
Creates a new stub or multiple stubs and adds them to the storage
Create a new stub in the store
id | string <uuid> (ID) |
service required | string |
method required | string |
priority | integer Default: 0 Priority of the stub. Higher priority stubs are matched first. |
object (StubHeaders) | |
required | object (StubInput) |
Array of objects (StubInput) Inputs to match against. If multiple inputs are provided, the stub will be matched if any of the inputs match. | |
required | object (StubOutput) |
[ ]
[ ]
Searches for Stub by ID
uuid required | string <uuid> (ID) Example: 51c50050-ec27-4dae-a583-a32ca71a1dd5 ID of stub |
{- "id": "51c50050-ec27-4dae-a583-a32ca71a1dd5",
- "service": "Gripmock",
- "method": "SayHello",
- "priority": 0,
- "headers": {
- "equals": {
- "property1": "string",
- "property2": "string"
}, - "contains": {
- "property1": "string",
- "property2": "string"
}, - "matches": {
- "property1": "string",
- "property2": "string"
}
}, - "input": {
- "ignoreArrayOrder": false,
- "equals": { },
- "contains": { },
- "matches": { }
}, - "inputs": [
- {
- "ignoreArrayOrder": false,
- "equals": { },
- "contains": { },
- "matches": { }
}
], - "output": {
- "data": { },
- "stream": [
- { }
], - "headers": {
- "property1": "string",
- "property2": "string"
}, - "error": "Message not found",
- "code": 3,
- "delay": "1s"
}
}
Performs a search for a stub by the given conditions
Search criteria including service, method, headers and data to match against stubs
id | string <uuid> (ID) |
service required | string |
method required | string |
object | |
required | object |
{- "id": "51c50050-ec27-4dae-a583-a32ca71a1dd5",
- "service": "Gripmock",
- "method": "SayHello",
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "data": { }
}
{- "headers": {
- "property1": "string",
- "property2": "string"
}, - "data": { },
- "error": "Message not found",
- "code": 3
}