/
jender
/
t1_java_task
Обзор
Документация
Войти
/
jender
/
t1_java_task
Код
Запросы
1
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
second_task
postman/t1 java test.postman_collection.json
358 строк
8 KB
rodz0721
add postman collection
04 ноя 2024, 22:44
04 ноя 2024, 22:44
f002a92
Код
Авторство
О чём код?
{ "info": { "_postman_id": "67a2caf3-a5a1-4b24-b339-09831fd8f2ea", "name": "t1 java test", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "29875680" }, "item": [ { "name": "client", "item": [ { "name": "get all clients", "request": { "method": "GET", "header": [], "url": { "raw": "localhost:8080/client", "host": [ "localhost" ], "port": "8080", "path": [ "client" ] } }, "response": [] }, { "name": "get client by id", "request": { "method": "GET", "header": [], "url": { "raw": "localhost:8080/client/20", "host": [ "localhost" ], "port": "8080", "path": [ "client", "20" ] } }, "response": [] }, { "name": "create client", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"firstName\": \"Sam\",\n \"lastName\": \"Saymon\",\n \"middleName\": \"Leontine\",\n \"accounts\": [\n {\n \"type\": \"CREDIT\",\n \"balance\": 4691.99,\n \"transactions\": []\n },\n {\n \"type\": \"DEBIT\",\n \"balance\": 6630.13,\n \"transactions\": [\n {\n \"amount\": 4127.61,\n \"transactionTime\": \"2024-11-04T19:08:55.51085Z\"\n },\n {\n \"amount\": 2209.54,\n \"transactionTime\": \"2024-11-04T19:08:55.510888Z\"\n },\n {\n \"amount\": 5744.73,\n \"transactionTime\": \"2024-11-04T19:08:55.510902Z\"\n },\n {\n \"amount\": 6013.48,\n \"transactionTime\": \"2024-11-04T19:08:55.510913Z\"\n },\n {\n \"amount\": 9355.09,\n \"transactionTime\": \"2024-11-04T19:08:55.510922Z\"\n },\n {\n \"amount\": 1021.67,\n \"transactionTime\": \"2024-11-04T19:08:55.510932Z\"\n }\n ]\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "localhost:8080/client", "host": [ "localhost" ], "port": "8080", "path": [ "client" ] } }, "response": [] }, { "name": "update client", "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"firstName\": \"Sam\",\n \"lastName\": \"Saymonser\",\n \"middleName\": \"Leontineasd\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "localhost:8080/client/54", "host": [ "localhost" ], "port": "8080", "path": [ "client", "54" ] } }, "response": [] }, { "name": "delete client", "request": { "method": "DELETE", "header": [], "url": { "raw": "localhost:8080/client/53", "host": [ "localhost" ], "port": "8080", "path": [ "client", "53" ] } }, "response": [] } ] }, { "name": "account", "item": [ { "name": "get all accounts", "request": { "method": "GET", "header": [], "url": { "raw": "localhost:8080/account", "host": [ "localhost" ], "port": "8080", "path": [ "account" ] } }, "response": [] }, { "name": "get account by id", "request": { "method": "GET", "header": [], "url": { "raw": "localhost:8080/account/1", "host": [ "localhost" ], "port": "8080", "path": [ "account", "1" ] } }, "response": [] }, { "name": "create account", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"clientId\": 3,\n \"type\": \"DEBIT\",\n \"balance\": 8229.80,\n \"transactions\": [\n {\n \"amount\": 2852.72,\n \"transactionTime\": \"2024-11-04T19:08:55.509039Z\"\n },\n {\n \"amount\": 3927.92,\n \"transactionTime\": \"2024-11-04T19:08:55.509094Z\"\n }\n ]\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "localhost:8080/account", "host": [ "localhost" ], "port": "8080", "path": [ "account" ] } }, "response": [] }, { "name": "update account", "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"clientId\": 3,\n \"type\": \"CREDIT\",\n \"balance\": 8232.80\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "localhost:8080/account/65", "host": [ "localhost" ], "port": "8080", "path": [ "account", "65" ] } }, "response": [] }, { "name": "delete account", "request": { "method": "DELETE", "header": [], "url": { "raw": "localhost:8080/account/65", "host": [ "localhost" ], "port": "8080", "path": [ "account", "65" ] } }, "response": [] } ] }, { "name": "transaction", "item": [ { "name": "get all transactions", "request": { "method": "GET", "header": [], "url": { "raw": "localhost:8080/transaction", "host": [ "localhost" ], "port": "8080", "path": [ "transaction" ] } }, "response": [] }, { "name": "get transaction by id", "request": { "method": "GET", "header": [], "url": { "raw": "localhost:8080/transaction/1", "host": [ "localhost" ], "port": "8080", "path": [ "transaction", "1" ] } }, "response": [] }, { "name": "create transaction", "request": { "method": "POST", "header": [], "body": { "mode": "raw", "raw": "{\n \"accountId\": 5,\n \"amount\": 2852.72,\n \"transactionTime\": \"2024-11-04T19:08:55.509039Z\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "localhost:8080/transaction", "host": [ "localhost" ], "port": "8080", "path": [ "transaction" ] } }, "response": [] }, { "name": "update transaction", "request": { "method": "PUT", "header": [], "body": { "mode": "raw", "raw": "{\n \"accountId\": 5,\n \"amount\": 2842.72,\n \"transactionTime\": \"2024-11-04T19:08:55.509039Z\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "localhost:8080/transaction/1", "host": [ "localhost" ], "port": "8080", "path": [ "transaction", "1" ] } }, "response": [] }, { "name": "delete transaction", "request": { "method": "DELETE", "header": [], "url": { "raw": "localhost:8080/transaction/1", "host": [ "localhost" ], "port": "8080", "path": [ "transaction", "1" ] } }, "response": [] } ] } ] }