From ab5b2832aebe3fdd8823f8a4c09994aa1e30e581 Mon Sep 17 00:00:00 2001 From: Santiago Faci Date: Mon, 24 Mar 2025 01:31:05 +0100 Subject: [PATCH] =?UTF-8?q?colecci=C3=B3n=20postman?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cities.postman_collection.json | 73 ++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 cities.postman_collection.json diff --git a/cities.postman_collection.json b/cities.postman_collection.json new file mode 100644 index 0000000..1d0d39b --- /dev/null +++ b/cities.postman_collection.json @@ -0,0 +1,73 @@ +{ + "info": { + "_postman_id": "def0ceb3-9597-4f31-bc0f-54f466157759", + "name": "cities", + "schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json", + "_exporter_id": "3720353" + }, + "item": [ + { + "name": "cities", + "request": { + "method": "GET", + "header": [], + "url": "http://localhost:8080/cities" + }, + "response": [] + }, + { + "name": "cities/:cityId", + "request": { + "method": "GET", + "header": [], + "url": "http://localhost:8080/cities/73" + }, + "response": [] + }, + { + "name": "cities/:cityId", + "request": { + "method": "DELETE", + "header": [], + "url": "http://localhost:8080/cities/72" + }, + "response": [] + }, + { + "name": "cities", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"name\": \"Zaragoza\",\n \"foundationDate\": \"2000-10-10\",\n \"population\": 1000,\n \"area\": 10\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": "http://localhost:8080/cities" + }, + "response": [] + }, + { + "name": "cities/:cityId", + "request": { + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"name\": \"Madrid\",\n \"foundationDate\": \"2000-10-10\",\n \"population\": 102200,\n \"area\": 10\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": "http://localhost:8080/cities/71" + }, + "response": [] + } + ] +} \ No newline at end of file