Files
wildflock/mockserver-config/initializerJson.json

107 lines
3.0 KiB
JSON

[
{
"httpRequest": {
"method": "GET",
"path": "/users/dev-user/addresses"
},
"httpResponse": {
"statusCode": 200,
"headers": {
"Content-Type": [
"application/json"
]
},
"body": {
"success": true,
"results": [
{
"id": "alias1@test-codemowers.eu",
"address": "alias1@test-codemowers.eu",
"main": false,
"user": "dev-user",
"tags": [
"color"
],
"created": "2023-01-01T00:00:00.000Z"
},
{
"id": "alias2@test-codemowers.eu",
"address": "alias2@test-codemowers.eu",
"main": false,
"user": "dev-user",
"tags": [
"animal"
],
"created": "2023-01-02T00:00:00.000Z"
},
{
"id": "alias3@test-codemowers.eu",
"address": "alias3@test-codemowers.eu",
"main": false,
"user": "dev-user",
"tags": [],
"created": "2023-01-03T00:00:00.000Z"
}
]
}
}
},
{
"httpRequest": {
"method": "POST",
"path": "/users/dev-user/addresses"
},
"httpResponse": {
"statusCode": 200,
"headers": {
"Content-Type": [
"application/json"
]
},
"body": {
"success": true,
"id": "new-alias@test-codemowers.eu"
}
}
},
{
"httpRequest": {
"method": "GET",
"path": "/addresses/resolve/.*"
},
"httpResponse": {
"statusCode": 200,
"headers": {
"Content-Type": [
"application/json"
]
},
"body": {
"success": true,
"user": "dev-user",
"address": "{{request.pathSegments.[2]}}",
"id": "{{request.pathSegments.[2]}}",
"main": false,
"tags": [],
"created": "2023-01-01T00:00:00.000Z"
}
}
},
{
"httpRequest": {
"method": "DELETE",
"path": "/users/dev-user/addresses/.*"
},
"httpResponse": {
"statusCode": 200,
"headers": {
"Content-Type": [
"application/json"
]
},
"body": {
"success": true
}
}
}
]