Skip to content

Instantly share code, notes, and snippets.

@withered-flowers
Created July 8, 2022 00:18
Show Gist options
  • Save withered-flowers/a4e74a2e3526de2a8542e1e80e74bb03 to your computer and use it in GitHub Desktop.
Save withered-flowers/a4e74a2e3526de2a8542e1e80e74bb03 to your computer and use it in GitHub Desktop.
Postman Export for ReqResIn (unknown - colors)
{
"info": {
"_postman_id": "dc452308-c613-44a7-b4ad-c887091d29d7",
"name": "ReqResIn Colors",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "17419512"
},
"item": [
{
"name": "Fetch Colors",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://reqres.in/api/colors",
"protocol": "https",
"host": [
"reqres",
"in"
],
"path": [
"api",
"colors"
]
}
},
"response": []
},
{
"name": "Fetch Colors By Id",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "https://reqres.in/api/colors/2",
"protocol": "https",
"host": [
"reqres",
"in"
],
"path": [
"api",
"colors",
"2"
]
}
},
"response": []
},
{
"name": "Create Color",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"random\",\n \"year\": 2020,\n \"color\": \"#909090\",\n \"pantone_value\": \"15-1234\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://reqres.in/api/colors",
"protocol": "https",
"host": [
"reqres",
"in"
],
"path": [
"api",
"colors"
]
}
},
"response": []
},
{
"name": "Update Color By Id",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"id\": 2,\n \"name\": \"fuchsia rossa\",\n \"year\": 2001,\n \"color\": \"#C74375\",\n \"pantone_value\": \"17-2031\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://reqres.in/api/colors/2",
"protocol": "https",
"host": [
"reqres",
"in"
],
"path": [
"api",
"colors",
"2"
]
}
},
"response": []
},
{
"name": "Update Color Name By Id",
"request": {
"method": "PATCH",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"name\": \"fuchsia rossa\"\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://reqres.in/api/colors/2",
"protocol": "https",
"host": [
"reqres",
"in"
],
"path": [
"api",
"colors",
"2"
]
}
},
"response": []
},
{
"name": "Delete Color By Id",
"request": {
"method": "DELETE",
"header": [],
"body": {
"mode": "raw",
"raw": "",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "https://reqres.in/api/colors/2",
"protocol": "https",
"host": [
"reqres",
"in"
],
"path": [
"api",
"colors",
"2"
]
}
},
"response": []
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment