forked from GeoNode/geonode-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmocker.prism.yml
31 lines (31 loc) · 1.1 KB
/
mocker.prism.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
"name": "Datasets API Mock Server",
"description": "This Prism instance includes one global API that references the main.oas2 specification in this repository. This Open API specification defines the examples and schemas that drive the mock data. This instance also has one rule that runs a scenario in the before phase of all requests, to generate and set the mock data on the response. You can swap this scenario out to customize the mock server functionality.\n\nTry sending a test request to `/datasets`. This will return the mocked equivalent of `http://api.geonode.org/datasets`.",
"apis": [
{
"id": "datasets",
"specs": [
"./main.oas2.yml"
]
}
],
"rules": [
{
"id": "global",
"apis": [
"datasets"
],
"before": {
"mock": {
"$ref": "https://next.stoplight.io/misc/scenarios/helper-scenarios.json#/scenarios/b-mock"
}
},
"after": {
"mock": {
"$ref": "https://next.stoplight.io/misc/scenarios/helper-scenarios.json#/scenarios/a-mock"
}
},
"done": {}
}
]
}