Requests
Get all requests in journal
Mock APIs
Teams
Organisations
Data sources
Database connections
Usage
Access control
Stub Mappings
- GETGet all stub mappings
- POSTCreate a new stub mapping
- DELDelete all stub mappings
- POSTReset stub mappings
- POSTPersist stub mappings
- POSTImport stub mappings
- GETGet stub mapping by ID
- PUTUpdate a stub mapping
- DELDelete a stub mapping
- POSTFind stub mappings matching metadata
- POSTDelete stub mappings matching metadata
Requests
OpenAPI
Imports
Requests
Get all requests in journal
GET
/
v1
/
mock-apis
/
{mockApiId}
/
requests
curl --request GET \
--url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/requests \
--header 'Authorization: Basic <encoded-value>'
{
"requests": [
{
"id": "45760a03-eebb-4387-ad0d-bb89b5d3d662",
"request": {
"url": "/received-request/9",
"absoluteUrl": "http://localhost:56715/received-request/9",
"method": "GET",
"clientIp": "127.0.0.1",
"headers": {
"Connection": "keep-alive",
"Host": "localhost:56715",
"User-Agent": "Apache-HttpClient/4.5.1 (Java/1.7.0_51)"
},
"cookies": {},
"browserProxyRequest": false,
"loggedDate": 1471442494809,
"bodyAsBase64": "",
"body": "",
"loggedDateString": "2016-08-17T14:01:34Z"
},
"responseDefinition": {
"status": 404,
"transformers": [],
"fromConfiguredStub": false,
"transformerParameters": {}
}
},
{
"id": "6ae78311-0178-46c9-987a-fbfc528d54d8",
"request": {
"url": "/received-request/8",
"absoluteUrl": "http://localhost:56715/received-request/8",
"method": "GET",
"clientIp": "127.0.0.1",
"headers": {
"Connection": "keep-alive",
"Host": "localhost:56715",
"User-Agent": "Apache-HttpClient/4.5.1 (Java/1.7.0_51)"
},
"cookies": {},
"browserProxyRequest": false,
"loggedDate": 1471442494802,
"bodyAsBase64": "",
"body": "",
"loggedDateString": "2016-08-17T14:01:34Z"
},
"responseDefinition": {
"status": 404,
"transformers": [],
"fromConfiguredStub": false,
"transformerParameters": {}
}
},
{
"id": "aba8e4ad-1b5b-4518-8f05-b2170a24de35",
"request": {
"url": "/received-request/7",
"absoluteUrl": "http://localhost:56715/received-request/7",
"method": "GET",
"clientIp": "127.0.0.1",
"headers": {
"Connection": "keep-alive",
"Host": "localhost:56715",
"User-Agent": "Apache-HttpClient/4.5.1 (Java/1.7.0_51)"
},
"cookies": {},
"browserProxyRequest": false,
"loggedDate": 1471442494795,
"bodyAsBase64": "",
"body": "",
"loggedDateString": "2016-08-17T14:01:34Z"
},
"responseDefinition": {
"status": 404,
"transformers": [],
"fromConfiguredStub": false,
"transformerParameters": {}
}
}
],
"meta": {
"total": 9
},
"requestJournalDisabled": false
}
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Path Parameters
The ID of the Mock API
Required string length:
5 - 10
Query Parameters
The maximum number of results to return
Only return logged requests after this date
Response
200 - application/json
List of received requests
The response is of type any
.
curl --request GET \
--url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/requests \
--header 'Authorization: Basic <encoded-value>'
{
"requests": [
{
"id": "45760a03-eebb-4387-ad0d-bb89b5d3d662",
"request": {
"url": "/received-request/9",
"absoluteUrl": "http://localhost:56715/received-request/9",
"method": "GET",
"clientIp": "127.0.0.1",
"headers": {
"Connection": "keep-alive",
"Host": "localhost:56715",
"User-Agent": "Apache-HttpClient/4.5.1 (Java/1.7.0_51)"
},
"cookies": {},
"browserProxyRequest": false,
"loggedDate": 1471442494809,
"bodyAsBase64": "",
"body": "",
"loggedDateString": "2016-08-17T14:01:34Z"
},
"responseDefinition": {
"status": 404,
"transformers": [],
"fromConfiguredStub": false,
"transformerParameters": {}
}
},
{
"id": "6ae78311-0178-46c9-987a-fbfc528d54d8",
"request": {
"url": "/received-request/8",
"absoluteUrl": "http://localhost:56715/received-request/8",
"method": "GET",
"clientIp": "127.0.0.1",
"headers": {
"Connection": "keep-alive",
"Host": "localhost:56715",
"User-Agent": "Apache-HttpClient/4.5.1 (Java/1.7.0_51)"
},
"cookies": {},
"browserProxyRequest": false,
"loggedDate": 1471442494802,
"bodyAsBase64": "",
"body": "",
"loggedDateString": "2016-08-17T14:01:34Z"
},
"responseDefinition": {
"status": 404,
"transformers": [],
"fromConfiguredStub": false,
"transformerParameters": {}
}
},
{
"id": "aba8e4ad-1b5b-4518-8f05-b2170a24de35",
"request": {
"url": "/received-request/7",
"absoluteUrl": "http://localhost:56715/received-request/7",
"method": "GET",
"clientIp": "127.0.0.1",
"headers": {
"Connection": "keep-alive",
"Host": "localhost:56715",
"User-Agent": "Apache-HttpClient/4.5.1 (Java/1.7.0_51)"
},
"cookies": {},
"browserProxyRequest": false,
"loggedDate": 1471442494795,
"bodyAsBase64": "",
"body": "",
"loggedDateString": "2016-08-17T14:01:34Z"
},
"responseDefinition": {
"status": 404,
"transformers": [],
"fromConfiguredStub": false,
"transformerParameters": {}
}
}
],
"meta": {
"total": 9
},
"requestJournalDisabled": false
}