Skip to content

Commit

Permalink
update to v0_0_9
Browse files Browse the repository at this point in the history
  • Loading branch information
oz-keisar-d committed Apr 14, 2024
1 parent cff3716 commit 51884cd
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 34 deletions.
28 changes: 28 additions & 0 deletions presets/presetFolder.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"id": "2cb95f6a-ef15-4544-9525-fce8a10e39e2",
"filename": "presetFolder",
"name": "presetFolder",
"presetsHash": {
"abfc630f-bcdf-4063-8e2e-d46a2be9adeb": {
"id": "abfc630f-bcdf-4063-8e2e-d46a2be9adeb",
"description": "example of a preset",
"name": "presetExample",
"routesHash": {
"d031bf2b-cd69-47cb-abdd-a9d4771afefb": {
"id": "d031bf2b-cd69-47cb-abdd-a9d4771afefb",
"routeId": "6d4aa7ed-a23b-4b1e-a48b-83ca7ca5f1b9",
"parentId": "c3d0aa64-28ca-48ea-87fe-80fd5ac028b7",
"serverId": "default",
"responseId": "4b616f18-218d-4c0d-9967-20404cda37e9"
},
"40cae05f-ae94-4c3e-bbb4-bc57106aff52": {
"id": "40cae05f-ae94-4c3e-bbb4-bc57106aff52",
"routeId": "3a5dcb68-6e00-4c11-9edc-272081a71262",
"parentId": "c3d0aa64-28ca-48ea-87fe-80fd5ac028b7",
"serverId": "default",
"responseId": "1a4d6a7f-e56a-40dd-8d4e-e398daa92484"
}
}
}
}
}
59 changes: 30 additions & 29 deletions servers/default/data/example.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"id": "c3d0aa64-28ca-48ea-87fe-80fd5ac028b7",
"filename": "example",
"path": "/example",
"routes": [
{
"id":"6d4aa7ed-a23b-4b1e-a48b-83ca7ca5f1b9",
"routesHash": {
"6d4aa7ed-a23b-4b1e-a48b-83ca7ca5f1b9": {
"id": "6d4aa7ed-a23b-4b1e-a48b-83ca7ca5f1b9",
"description": "example route for stub-on-prem",
"routePath": "/route",
"method": "get",
"description": "example route for stub-on-prem",
"activeResponseIndex": 1,
"responses": [
{
"id":"4b616f18-218d-4c0d-9967-20404cda37e9",
"activeResponseId": "9eaf95df-53e1-45b0-ad1a-01f134294811",
"responsesHash": {
"4b616f18-218d-4c0d-9967-20404cda37e9": {
"id": "4b616f18-218d-4c0d-9967-20404cda37e9",
"name": "object response example",
"description": "return example of object response ",
"res": {
Expand All @@ -22,35 +21,35 @@
},
"type": "obj"
},
{
"id":"9eaf95df-53e1-45b0-ad1a-01f134294811",

"9eaf95df-53e1-45b0-ad1a-01f134294811": {
"id": "9eaf95df-53e1-45b0-ad1a-01f134294811",
"name": "func response example",
"description": "example of func that returns object response",
"exec": "(req, res) => {\n\t\n\tres.status(400).send({ isFunc: true })\n}",
"type": "func"
},
{
"id":"f9b2af90-4dbb-458b-905b-030adabc6396",

"f9b2af90-4dbb-458b-905b-030adabc6396": {
"id": "f9b2af90-4dbb-458b-905b-030adabc6396",
"name": "proxy response",
"description": "example of proxy response",
"url": "https://www.jsonkeeper.com/b/ZIA2",
"type": "proxy"
}
]
},
"paramType": "body",
"paramValue": "",
"paramKey": "",
"withParams": false
},
{
"id":"3a5dcb68-6e00-4c11-9edc-272081a71262",

"3a5dcb68-6e00-4c11-9edc-272081a71262": {
"id": "3a5dcb68-6e00-4c11-9edc-272081a71262",
"description": "test",
"routePath": "/test",
"method": "get",
"activeResponseIndex": 0,
"responses": [
{
"id":"1a4d6a7f-e56a-40dd-8d4e-e398daa92484",

"activeResponseId": "1a4d6a7f-e56a-40dd-8d4e-e398daa92484",
"responsesHash": {
"1a4d6a7f-e56a-40dd-8d4e-e398daa92484": {
"id": "1a4d6a7f-e56a-40dd-8d4e-e398daa92484",
"name": "test",
"description": "test",
"res": {
Expand All @@ -62,10 +61,12 @@
"url": null,
"type": "obj"
}
],
"paramKey": "test",
},
"paramType": "query",
"paramValue": "test"
"paramValue": "test",
"paramKey": "test",
"withParams": true
}
]
}
},
"path": "/example"
}
6 changes: 1 addition & 5 deletions settings/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
{
"proxyBaseUrl": "",
"dataVersion":"0.0.6",
"forceProxy": false
}
{"forceProxy":false,"dataVersion":"0.0.9","proxyBaseUrl":""}

0 comments on commit 51884cd

Please sign in to comment.