Requests
Get request by ID
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 request by ID
GET
/
v1
/
mock-apis
/
{mockApiId}
/
requests
/
{requestId}
curl --request GET \
--url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/requests/{requestId} \
--header 'Authorization: Basic <encoded-value>'
{
"id": "12fb14bb-600e-4bfa-bd8d-be7f12562c99",
"request": {
"url": "/received-request/2",
"absoluteUrl": "http://localhost:56738/received-request/2",
"method": "GET",
"clientIp": "127.0.0.1",
"headers": {
"Connection": "keep-alive",
"Host": "localhost:56738",
"User-Agent": "Apache-HttpClient/4.5.1 (Java/1.7.0_51)"
},
"cookies": {},
"browserProxyRequest": false,
"loggedDate": 1471442557047,
"bodyAsBase64": "",
"body": "",
"loggedDateString": "2016-08-17T14:02:37Z"
},
"responseDefinition": {
"status": 404,
"transformers": [],
"fromConfiguredStub": false,
"transformerParameters": {}
}
}
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
The UUID of the logged request
Response
200
application/json
OK
The response is of type any
.
curl --request GET \
--url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/requests/{requestId} \
--header 'Authorization: Basic <encoded-value>'
{
"id": "12fb14bb-600e-4bfa-bd8d-be7f12562c99",
"request": {
"url": "/received-request/2",
"absoluteUrl": "http://localhost:56738/received-request/2",
"method": "GET",
"clientIp": "127.0.0.1",
"headers": {
"Connection": "keep-alive",
"Host": "localhost:56738",
"User-Agent": "Apache-HttpClient/4.5.1 (Java/1.7.0_51)"
},
"cookies": {},
"browserProxyRequest": false,
"loggedDate": 1471442557047,
"bodyAsBase64": "",
"body": "",
"loggedDateString": "2016-08-17T14:02:37Z"
},
"responseDefinition": {
"status": 404,
"transformers": [],
"fromConfiguredStub": false,
"transformerParameters": {}
}
}