Created
August 20, 2021 01:03
-
-
Save gspolima/dd6e9ddcd9f9f7c490bdce3900067d03 to your computer and use it in GitHub Desktop.
A Postman collection containing the HTTP requests supported by the Wordtrack API
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
{ | |
"info": { | |
"_postman_id": "fd2d699f-c498-441c-9752-f6c56bf83b15", | |
"name": "Wordtrack", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "GET Get Books", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "https://localhost:44330/api/books", | |
"protocol": "https", | |
"host": [ | |
"localhost" | |
], | |
"port": "44330", | |
"path": [ | |
"api", | |
"books" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "GET Get Book By Id", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "https://localhost:44330/api/books/10", | |
"protocol": "https", | |
"host": [ | |
"localhost" | |
], | |
"port": "44330", | |
"path": [ | |
"api", | |
"books", | |
"10" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "GET Search Books By Author", | |
"protocolProfileBehavior": { | |
"disableBodyPruning": true | |
}, | |
"request": { | |
"method": "GET", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "https://localhost:44330/api/books/search/author?name=mr. fLYER", | |
"protocol": "https", | |
"host": [ | |
"localhost" | |
], | |
"port": "44330", | |
"path": [ | |
"api", | |
"books", | |
"search", | |
"author" | |
], | |
"query": [ | |
{ | |
"key": "name", | |
"value": "mr. fLYER" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "GET Search Books By Title", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "https://localhost:44330/api/books/search/title?phrase=fly", | |
"protocol": "https", | |
"host": [ | |
"localhost" | |
], | |
"port": "44330", | |
"path": [ | |
"api", | |
"books", | |
"search", | |
"title" | |
], | |
"query": [ | |
{ | |
"key": "phrase", | |
"value": "fly" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "GET Search Books By Year", | |
"request": { | |
"method": "GET", | |
"header": [], | |
"url": { | |
"raw": "https://localhost:44330/api/books/search/published?year=-399", | |
"protocol": "https", | |
"host": [ | |
"localhost" | |
], | |
"port": "44330", | |
"path": [ | |
"api", | |
"books", | |
"search", | |
"published" | |
], | |
"query": [ | |
{ | |
"key": "year", | |
"value": "-399" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "POST New Book", | |
"request": { | |
"method": "POST", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\r\n \"Title\": \"The Symposium\",\r\n \"Author\": \"Plato\",\r\n \"YearPublished\": -385,\r\n \"Pages\": 140\r\n}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "https://localhost:44330/api/books", | |
"protocol": "https", | |
"host": [ | |
"localhost" | |
], | |
"port": "44330", | |
"path": [ | |
"api", | |
"books" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "PUT Update Book", | |
"request": { | |
"method": "PUT", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\r\n \"title\": \"The Not So Happy Ants\",\r\n \"author\": \"Antman\",\r\n \"yearPublished\": 2021,\r\n \"pages\": 20\r\n}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "https://localhost:44330/api/books/2", | |
"protocol": "https", | |
"host": [ | |
"localhost" | |
], | |
"port": "44330", | |
"path": [ | |
"api", | |
"books", | |
"2" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "PUT Update Reading Status", | |
"request": { | |
"method": "PUT", | |
"header": [], | |
"body": { | |
"mode": "raw", | |
"raw": "{\r\n \"id\": 3,\r\n \"title\": \"The Big Ants\",\r\n \"author\": \"Tan Tan\",\r\n \"yearPublished\": 2021,\r\n \"pages\": 20\r\n}", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "https://localhost:44330/api/books/10/status?isRead=true", | |
"protocol": "https", | |
"host": [ | |
"localhost" | |
], | |
"port": "44330", | |
"path": [ | |
"api", | |
"books", | |
"10", | |
"status" | |
], | |
"query": [ | |
{ | |
"key": "isRead", | |
"value": "true" | |
} | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "PATCH Partial Update Book", | |
"protocolProfileBehavior": { | |
"disabledSystemHeaders": {} | |
}, | |
"request": { | |
"method": "PATCH", | |
"header": [ | |
{ | |
"key": "Content-Type", | |
"value": "application/json", | |
"type": "text" | |
} | |
], | |
"body": { | |
"mode": "raw", | |
"raw": "[\r\n {\r\n \"op\": \"replace\",\r\n \"path\": \"/yearPublished\",\r\n \"value\": 2014\r\n }\r\n]", | |
"options": { | |
"raw": { | |
"language": "json" | |
} | |
} | |
}, | |
"url": { | |
"raw": "https://localhost:44330/api/books/10", | |
"protocol": "https", | |
"host": [ | |
"localhost" | |
], | |
"port": "44330", | |
"path": [ | |
"api", | |
"books", | |
"10" | |
] | |
} | |
}, | |
"response": [] | |
}, | |
{ | |
"name": "DELETE Delete Book", | |
"request": { | |
"method": "DELETE", | |
"header": [], | |
"url": { | |
"raw": "https://localhost:44330/api/books/9", | |
"protocol": "https", | |
"host": [ | |
"localhost" | |
], | |
"port": "44330", | |
"path": [ | |
"api", | |
"books", | |
"9" | |
] | |
} | |
}, | |
"response": [] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment