State
Get all scenarios
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
State
Get all scenarios
GET
/
v1
/
mock-apis
/
{mockApiId}
/
scenarios
curl --request GET \
--url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/scenarios \
--header 'Authorization: Basic <encoded-value>'
{
"scenarios": [
{
"id": "c8d249ec-d86d-48b1-88a8-a660e6848042",
"name": "my_scenario",
"possibleStates": [
"Started",
"state_1",
"state_2"
],
"state": "state_2"
}
]
}
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
curl --request GET \
--url https://wmc.wiremockapi.cloud/v1/mock-apis/{mockApiId}/scenarios \
--header 'Authorization: Basic <encoded-value>'
{
"scenarios": [
{
"id": "c8d249ec-d86d-48b1-88a8-a660e6848042",
"name": "my_scenario",
"possibleStates": [
"Started",
"state_1",
"state_2"
],
"state": "state_2"
}
]
}