Get all requests in journal
curl --request GET \
--url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/requests \
--header 'Authorization: <api-key>'import requests
url = "https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/requests"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/requests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/requests"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/requests")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"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
}Requests
Get all requests in journal
GET
/
v1
/
mock-apis
/
{mockApiId}
/
requests
Get all requests in journal
curl --request GET \
--url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/requests \
--header 'Authorization: <api-key>'import requests
url = "https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/requests"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/requests', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/requests",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/requests"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/requests")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/requests")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"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
}Path Parameters
The ID of the Mock API
Required string length:
5 - 10Example:
"jjl8y"
Query Parameters
The maximum number of results to return
Only return logged requests after this date
Response
200 - application/json
List of received requests
⌘I