diff --git a/postman/Errands.postman_collection.json b/postman/Errands.postman_collection.json index c34b7a9..5b4f071 100644 --- a/postman/Errands.postman_collection.json +++ b/postman/Errands.postman_collection.json @@ -565,50 +565,31 @@ "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" @@ -616,41 +597,58 @@ "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" @@ -658,8 +656,10 @@ "port": "5555", "path": [ "v1", - "errand", - "{{errand_id}}" + "errands", + "update", + "status", + "active" ] } }, @@ -726,7 +726,7 @@ ], "variable": [ { - "id": "28d42a29-c19c-4e20-beae-a96c7a552bd0", + "id": "0d6d657d-4625-47e6-adcf-16aab5e3d107", "key": "errand", "value": "ERRAND_ID", "type": "string"