From f911c6cbbae5e231780859d91b8190fdfb50f970 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 15 Apr 2023 14:18:00 +0700 Subject: [PATCH] +postman --- .../webApp230415_hall.postman_collection.json | 212 ++++++++++++++++++ 1 file changed, 212 insertions(+) create mode 100644 20230415.3/webApp230415_hall.postman_collection.json diff --git a/20230415.3/webApp230415_hall.postman_collection.json b/20230415.3/webApp230415_hall.postman_collection.json new file mode 100644 index 0000000..15d81d4 --- /dev/null +++ b/20230415.3/webApp230415_hall.postman_collection.json @@ -0,0 +1,212 @@ +{ + "info": { + "_postman_id": "ed89b8b7-813e-4589-970c-0b6090d7e7cd", + "name": "webApp230415_hall", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "26683763" + }, + "item": [ + { + "name": "get not booked", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{baseurl}}/", + "host": [ + "{{baseurl}}" + ], + "path": [ + "" + ] + } + }, + "response": [] + }, + { + "name": "seat info", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{baseurl}}/seat/1/5", + "host": [ + "{{baseurl}}" + ], + "path": [ + "seat", + "1", + "5" + ] + } + }, + "response": [] + }, + { + "name": "seat add", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "iRow", + "value": "1", + "type": "text" + }, + { + "key": "iPosition", + "value": "11", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseurl}}/seat", + "host": [ + "{{baseurl}}" + ], + "path": [ + "seat" + ] + } + }, + "response": [] + }, + { + "name": "seat de3lete", + "request": { + "method": "DELETE", + "header": [ + { + "key": "iRow", + "value": "1", + "type": "text" + }, + { + "key": "iPosition", + "value": "11", + "type": "text" + } + ], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "iRow", + "value": "1", + "type": "text", + "disabled": true + }, + { + "key": "iPosition", + "value": "11", + "type": "text", + "disabled": true + } + ] + }, + "url": { + "raw": "{{baseurl}}/seat", + "host": [ + "{{baseurl}}" + ], + "path": [ + "seat" + ] + } + }, + "response": [] + }, + { + "name": "seat booking", + "request": { + "method": "PATCH", + "header": [], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "iRow", + "value": "1", + "type": "text" + }, + { + "key": "iPosition", + "value": "11", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseurl}}/seat/booking/1/2", + "host": [ + "{{baseurl}}" + ], + "path": [ + "seat", + "booking", + "1", + "2" + ] + } + }, + "response": [] + }, + { + "name": "seat info query", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{baseurl}}/seat?iRow=1&iPosition=1", + "host": [ + "{{baseurl}}" + ], + "path": [ + "seat" + ], + "query": [ + { + "key": "iRow", + "value": "1" + }, + { + "key": "iPosition", + "value": "1" + } + ] + } + }, + "response": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "variable": [ + { + "key": "baseurl", + "value": "http://localhost:5095/v1/hall", + "type": "string" + } + ] +} \ No newline at end of file