availity-ekko
Version:
Mock server simulating Availity API rest services
167 lines (154 loc) • 2.74 kB
JSON
{
"v1/route1": {
"file": "example1.json"
},
"v1/route2": {
"latency": 250,
"file": "example2.json",
"status": 201
},
"v1/route3": {
"file": "example3.json",
"post": "example1.json"
},
"v1/route4": {
"get": "example1.json",
"put": "example2.json",
"post": "example3.json",
"delete": "example4.json"
},
"v1/route5": {
"file": "example1.json",
"get": [
{
"file": "example2.json",
"status": 202,
"params": {
"a": "1",
"b": "2",
"c": "3"
}
},
{
"file": "example3.json",
"params": {
"a": [1, 2, 3, 4]
}
}
]
},
"v1/route6": {
"file": "example1.json",
"post": [
{
"file": "example2.json",
"params": {
"a": 1
}
},
{
"file": "example3.json",
"params": {
"a.b.c": 1
}
},
{
"file": "example4.json",
"params": {
"a.b[2]": 2
}
}
]
},
"v1/route7": {
"file": "example1.json",
"post": [
{
"file": "example2.json"
},
{
"file": "example3.json",
"params": {
"a": 1,
"b": "sample.pdf"
}
},
{
"file": "example4.json",
"params": {
"a": 2,
"b": "another.name.jpg"
}
}
]
},
"v1/route8": {
"file": "example1.json",
"get": [
{
"file": "example2.json",
"response": [
{
"status": 202,
"file": "example3.json",
"headers": {
"Location": "/v1/route8"
}
},
{
"status": 201,
"file": "example4.json"
}
]
}
]
},
"v1/route9": {
"url": "http://www.google.com"
},
"v1/route10": {
"file": "example1.json",
"get": [
{
"file": "example1.json",
"response": [
{
"status": 202,
"latency": 250,
"file": "example1.json",
"repeat": 3
},
{
"status": 201,
"file": "example2.json"
},
{
"file": "example3.json",
"repeat": 4
},
{
"file": "example4.json",
"repeat": 2
}
]
}
]
},
"v1/route11": {
"file": "example1.json",
"get": [
{
"file": "example2.json",
"headers": {
"b": "2"
}
},
{
"file": "example3.json",
"headers": {
"c": "3"
}
}
]
}
}