Skip to content

Commit

Permalink
Tweak order
Browse files Browse the repository at this point in the history
  • Loading branch information
qrpike committed Mar 20, 2019
1 parent 7c5c297 commit b0d7f5c
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions postman/Errands.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -565,101 +565,101 @@
"response": []
},
{
"name": "Update All Errands ( filtered )",
"name": "Delete Errand",
"event": [
{
"listen": "test",
"script": {
"id": "e243f842-ec20-43f2-a7a9-a568b8251109",
"id": "eb78c88a-144b-47ef-a34e-11f1a52816ad",
"exec": [
"var jsonData = pm.response.json();",
"var schema = {",
" type: \"object\",",
" properties: {",
" status: {",
" type: \"string\"",
" },",
" count: \"number\"",
" }",
"};",
"pm.test(\"Status code is 200\", function (){ ",
" pm.response.to.have.status(200);",
"});",
"pm.test('Schema is valid', function() {",
" pm.expect(tv4.validate(jsonData, schema)).to.be.true;",
"});"
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n\t\"status\": \"inactive\"\n}"
"raw": ""
},
"url": {
"raw": "http://localhost:5555/v1/errands/update/status/active",
"raw": "http://localhost:5555/v1/errand/{{errand_id}}",
"protocol": "http",
"host": [
"localhost"
],
"port": "5555",
"path": [
"v1",
"errands",
"update",
"status",
"active"
"errand",
"{{errand_id}}"
]
}
},
"response": []
},
{
"name": "Delete Errand",
"name": "Update All Errands ( filtered )",
"event": [
{
"listen": "test",
"script": {
"id": "eb78c88a-144b-47ef-a34e-11f1a52816ad",
"id": "e243f842-ec20-43f2-a7a9-a568b8251109",
"exec": [
"var jsonData = pm.response.json();",
"var schema = {",
" type: \"object\",",
" properties: {",
" status: {",
" type: \"string\"",
" },",
" count: \"number\"",
" }",
"};",
"pm.test(\"Status code is 200\", function (){ ",
" pm.response.to.have.status(200);",
"});",
""
"pm.test('Schema is valid', function() {",
" pm.expect(tv4.validate(jsonData, schema)).to.be.true;",
"});"
],
"type": "text/javascript"
}
}
],
"request": {
"method": "DELETE",
"header": [],
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"type": "text",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": ""
"raw": "{\n\t\"status\": \"inactive\"\n}"
},
"url": {
"raw": "http://localhost:5555/v1/errand/{{errand_id}}",
"raw": "http://localhost:5555/v1/errands/update/status/active",
"protocol": "http",
"host": [
"localhost"
],
"port": "5555",
"path": [
"v1",
"errand",
"{{errand_id}}"
"errands",
"update",
"status",
"active"
]
}
},
Expand Down Expand Up @@ -726,7 +726,7 @@
],
"variable": [
{
"id": "28d42a29-c19c-4e20-beae-a96c7a552bd0",
"id": "0d6d657d-4625-47e6-adcf-16aab5e3d107",
"key": "errand",
"value": "ERRAND_ID",
"type": "string"
Expand Down

0 comments on commit b0d7f5c

Please sign in to comment.