From 15125d6d21c7034c789c429e847c223b67ab6126 Mon Sep 17 00:00:00 2001 From: Vadims Filipovskis Date: Mon, 19 Dec 2022 19:18:24 +0200 Subject: [PATCH] postman api collection --- geo_service_rest_api.postman_collection.json | 234 +++++++++++++++++++ 1 file changed, 234 insertions(+) create mode 100644 geo_service_rest_api.postman_collection.json diff --git a/geo_service_rest_api.postman_collection.json b/geo_service_rest_api.postman_collection.json new file mode 100644 index 0000000..283181a --- /dev/null +++ b/geo_service_rest_api.postman_collection.json @@ -0,0 +1,234 @@ +{ + "info": { + "_postman_id": "afa2ba4f-c3aa-4ca8-8859-782e29525b5e", + "name": "geo service rest api", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", + "_exporter_id": "6420217" + }, + "item": [ + { + "name": "Region", + "item": [ + { + "name": "POST Create Region", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"title\": \"Asia\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{host}}/api/v1/regions", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "v1", + "regions" + ] + } + }, + "response": [] + }, + { + "name": "DELETE Delete Region", + "request": { + "method": "DELETE", + "header": [], + "url": { + "raw": "{{host}}/api/v1/regions/17f3cc02-8a80-4346-88ec-ab89a4671623", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "v1", + "regions", + "17f3cc02-8a80-4346-88ec-ab89a4671623" + ] + } + }, + "response": [] + }, + { + "name": "PUT Update Region", + "request": { + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"title\": \"Europe\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{host}}/api/v1/regions/5f1e7900-73cb-4c1d-8a37-9220abd57be3", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "v1", + "regions", + "5f1e7900-73cb-4c1d-8a37-9220abd57be3" + ] + } + }, + "response": [] + }, + { + "name": "GET List Regions", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{host}}/api/v1/regions", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "v1", + "regions" + ] + } + }, + "response": [] + } + ] + }, + { + "name": "Timezone", + "item": [ + { + "name": "POST Create Timezone", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"title\": \"Europe/Oslo (GMT+01:00)\",\n \"code\": \"Europe/Oslo\",\n \"utc\":\"+01:00\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{host}}/api/v1/timezones", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "v1", + "timezones" + ] + } + }, + "response": [] + }, + { + "name": "DELETE Delete Timezone", + "request": { + "method": "DELETE", + "header": [], + "url": { + "raw": "{{host}}/api/v1/timezones/03fd7621-04aa-47f9-bc01-10d4f19ec827", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "v1", + "timezones", + "03fd7621-04aa-47f9-bc01-10d4f19ec827" + ] + } + }, + "response": [] + }, + { + "name": "GET List Timezones", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "{{host}}/api/v1/timezones?limit=10&offset=0&title=Europe&utc=+01:00&code=Europe", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "v1", + "timezones" + ], + "query": [ + { + "key": "limit", + "value": "10" + }, + { + "key": "offset", + "value": "0" + }, + { + "key": "title", + "value": "Europe" + }, + { + "key": "utc", + "value": "+01:00" + }, + { + "key": "code", + "value": "Europe" + } + ] + } + }, + "response": [] + }, + { + "name": "PUT Update Timezone", + "request": { + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"title\": \"Europe/Oslo (GMT+01:00)\",\n \"code\": \"Europe/Oslo\",\n \"utc\": \"+01:00\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "{{host}}/api/v1/timezones/c03e5254-838c-449d-8f71-4dec84ce7c86", + "host": [ + "{{host}}" + ], + "path": [ + "api", + "v1", + "timezones", + "c03e5254-838c-449d-8f71-4dec84ce7c86" + ] + } + }, + "response": [] + } + ] + } + ] +} \ No newline at end of file