chore(development): add dev mode, update packages and test framework
This commit is contained in:
107
mockserver-config/initializerJson.json
Normal file
107
mockserver-config/initializerJson.json
Normal file
@@ -0,0 +1,107 @@
|
||||
[
|
||||
{
|
||||
"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
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user