From c4699b82c9a7d37c499adbf3a04247fc9a516875 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 15 Apr 2023 14:20:25 +0700 Subject: [PATCH] addition postman --- ...bApp230415_library.postman_collection.json | 147 ++++++++++++++++ ...ebApp230415_casino.postman_collection.json | 163 ++++++++++++++++++ README.md | 3 + 3 files changed, 313 insertions(+) create mode 100644 20230415.1/webApp230415_library.postman_collection.json create mode 100644 20230415.2/webApp230415_casino.postman_collection.json diff --git a/20230415.1/webApp230415_library.postman_collection.json b/20230415.1/webApp230415_library.postman_collection.json new file mode 100644 index 0000000..d3791b5 --- /dev/null +++ b/20230415.1/webApp230415_library.postman_collection.json @@ -0,0 +1,147 @@ +{ + "info": { + "_postman_id": "d1afb123-abf6-4a75-866f-42b67f76ac48", + "name": "webApp230415_library", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "26683763" + }, + "item": [ + { + "name": "get active books", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{base}}v1/library/books", + "host": [ + "{{base}}v1" + ], + "path": [ + "library", + "books" + ] + } + }, + "response": [] + }, + { + "name": "add book (запрос)", + "request": { + "method": "POST", + "header": [], + "url": { + "raw": "{{base}}v1/library/books?name=Книга {{$randomInt}}&author=Автор {{$randomWords}}", + "host": [ + "{{base}}v1" + ], + "path": [ + "library", + "books" + ], + "query": [ + { + "key": "name", + "value": "Книга {{$randomInt}}" + }, + { + "key": "author", + "value": "Автор {{$randomWords}}" + } + ] + } + }, + "response": [] + }, + { + "name": "delete book (запрос)", + "request": { + "method": "DELETE", + "header": [], + "url": { + "raw": "{{base}}v1/library/books/6dcb9a45f59246749c4be563349dcb62", + "host": [ + "{{base}}v1" + ], + "path": [ + "library", + "books", + "6dcb9a45f59246749c4be563349dcb62" + ] + } + }, + "response": [] + }, + { + "name": "add book (тело)", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "name", + "value": "Книга {{$randomWords}}", + "type": "text" + }, + { + "key": "author", + "value": "Автор {{$randomWords}}", + "type": "text" + } + ] + }, + "url": { + "raw": "{{base}}v1/library/books", + "host": [ + "{{base}}v1" + ], + "path": [ + "library", + "books" + ], + "query": [ + { + "key": "name", + "value": "Книга {{$randomInt}}", + "disabled": true + }, + { + "key": "author", + "value": "Автор {{$randomWords}}", + "disabled": true + } + ] + } + }, + "response": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "variable": [ + { + "key": "base", + "value": "http://localhost:5106/", + "type": "string" + } + ] +} \ No newline at end of file diff --git a/20230415.2/webApp230415_casino.postman_collection.json b/20230415.2/webApp230415_casino.postman_collection.json new file mode 100644 index 0000000..f0c2214 --- /dev/null +++ b/20230415.2/webApp230415_casino.postman_collection.json @@ -0,0 +1,163 @@ +{ + "info": { + "_postman_id": "912bacbb-48f5-4c0d-93da-c462526237a0", + "name": "webApp230415_casino", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "26683763" + }, + "item": [ + { + "name": "get list", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{baseurl}}", + "host": [ + "{{baseurl}}" + ] + } + }, + "response": [] + }, + { + "name": "add (query)", + "request": { + "method": "POST", + "header": [], + "url": { + "raw": "{{baseurl}}game?name=klasdlkasdasd&cash=19992", + "host": [ + "{{baseurl}}game" + ], + "query": [ + { + "key": "name", + "value": "klasdlkasdasd" + }, + { + "key": "cash", + "value": "19992" + } + ] + } + }, + "response": [] + }, + { + "name": "patch (state)", + "request": { + "method": "PATCH", + "header": [ + { + "key": "field", + "value": "1", + "type": "text" + } + ], + "url": { + "raw": "{{baseurl}}game/fd026a8b77b5447181d56883bf7e09b5", + "host": [ + "{{baseurl}}game" + ], + "path": [ + "fd026a8b77b5447181d56883bf7e09b5" + ] + } + }, + "response": [] + }, + { + "name": "patch (state) Copy", + "request": { + "method": "DELETE", + "header": [ + { + "key": "field", + "value": "1", + "type": "text", + "disabled": true + } + ], + "url": { + "raw": "{{baseurl}}game/9627d141762740b5a74737931c6230b5", + "host": [ + "{{baseurl}}game" + ], + "path": [ + "9627d141762740b5a74737931c6230b5" + ] + } + }, + "response": [] + }, + { + "name": "add (form)", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "formdata", + "formdata": [ + { + "key": "name", + "value": "asdadsfaf", + "type": "text" + }, + { + "key": "cash", + "value": "20243", + "type": "text" + } + ] + }, + "url": { + "raw": "{{baseurl}}gameForm", + "host": [ + "{{baseurl}}gameForm" + ], + "query": [ + { + "key": "name", + "value": "klasdlkasdasd", + "disabled": true + }, + { + "key": "cash", + "value": "19992", + "disabled": true + } + ] + } + }, + "response": [] + } + ], + "event": [ + { + "listen": "prerequest", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + }, + { + "listen": "test", + "script": { + "type": "text/javascript", + "exec": [ + "" + ] + } + } + ], + "variable": [ + { + "key": "baseurl", + "value": "http://localhost:5091/v1/casino/", + "type": "string" + } + ] +} \ No newline at end of file diff --git a/README.md b/README.md index af7da06..ffca328 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # restapi + . + postman- API. + .2 .3 , .1 - .