Skip to content

Commit

Permalink
Add more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
enginyoyen committed Mar 30, 2021
1 parent 78fb314 commit 4c2fdde
Show file tree
Hide file tree
Showing 6 changed files with 77 additions and 20 deletions.
33 changes: 33 additions & 0 deletions examples/http-get-json-payload.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"request":{
"url": "/user",
"method" : "GET"

},
"response":{
"status": 200,
"body": {
"login": "octocat",
"id": 1,
"node_id": "MDQ6VXNlcjE=",
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"gravatar_id": "",
"url": "https://api.github.com/users/octocat",
"html_url": "https://github.com/octocat",
"name": "monalisa octocat",
"company": "GitHub",
"blog": "https://github.com/blog",
"location": "San Francisco",
"email": "[email protected]",
"plan": {
"name": "Medium",
"space": 400,
"private_repos": 20,
"collaborators": 0
}
},
"headers":{
"Content-Type":"application/json"
}
}
}
15 changes: 15 additions & 0 deletions examples/http-post.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"request":{
"url": "/tell-me",
"method" : "POST",
"body": "Some message"

},
"response":{
"status": 200,
"body": "Here it is!",
"headers":{
"Content-Type":"text/plain"
}
}
}
14 changes: 14 additions & 0 deletions examples/simple-http-get.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"request":{
"url": "/ping",
"method" : "GET"

},
"response":{
"status": 200,
"body": "pong",
"headers":{
"Content-Type":"text/plain"
}
}
}
15 changes: 15 additions & 0 deletions examples/with-delay.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"request":{
"url": "/health",
"method" : "GET"

},
"response":{
"status": 200,
"body": "All healthy",
"headers":{
"Content-Type":"text/plain"
},
"withDelay": 2000
}
}
10 changes: 0 additions & 10 deletions mappings/health-endpoint.json

This file was deleted.

10 changes: 0 additions & 10 deletions mappings/test-endpoint.json

This file was deleted.

0 comments on commit 4c2fdde

Please sign in to comment.