-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vadims Filipovskis
committed
Dec 19, 2022
1 parent
207913a
commit 15125d6
Showing
1 changed file
with
234 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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": [] | ||
} | ||
] | ||
} | ||
] | ||
} |