You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
221 lines
6.7 KiB
221 lines
6.7 KiB
{
|
|
"info": {
|
|
"_postman_id": "7b41b3fe-ce7b-4d5b-81d3-4bba34d9bbf6",
|
|
"name": "Product",
|
|
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
|
|
},
|
|
"item": [
|
|
{
|
|
"name": "Post product",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\r\n \"name\": \"productNameTen\",\r\n \"picture\": \"pictureTen\",\r\n \"price\": 2223,\r\n \"rating\": 2.4,\r\n \"vendorName\": \"vendorTwo\",\r\n \"category\": \"categoryOne\",\r\n \"description\": \"descriptionTen\",\r\n \"quantity\": 72\r\n }",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "http://localhost:59326/product",
|
|
"protocol": "http",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "59326",
|
|
"path": [
|
|
"product"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Post many products",
|
|
"request": {
|
|
"method": "POST",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "[\r\n {\r\n \"name\": \"productNameTwo\",\r\n \"picture\": \"pictureTwo\",\r\n \"price\": 100,\r\n \"rating\": 4.9,\r\n \"vendorName\": \"vendorTwo\",\r\n \"category\": \"categoryTwo\",\r\n \"description\": \"descriptionTwo\",\r\n \"quantity\": 15\r\n },\r\n {\r\n \"name\": \"productNameThree\",\r\n \"picture\": \"pictureThree\",\r\n \"price\": 159,\r\n \"rating\": 0.1,\r\n \"vendorName\": \"vendorThree\",\r\n \"category\": \"categoryThree\",\r\n \"description\": \"descriptionThree\",\r\n \"quantity\": 99\r\n },\r\n {\r\n \"name\": \"productNameFour\",\r\n \"picture\": \"pictureFour\",\r\n \"price\": 1111,\r\n \"rating\": 5.0,\r\n \"vendorName\": \"vendorFour\",\r\n \"category\": \"categoryFour\",\r\n \"description\": \"descriptionFour\",\r\n \"quantity\": 22\r\n },\r\n {\r\n \"name\": \"productNameFive\",\r\n \"picture\": \"pictureFive\",\r\n \"price\": 1,\r\n \"rating\": 3.0,\r\n \"vendorName\": \"vendorFive\",\r\n \"category\": \"categoryOne\",\r\n \"description\": \"descriptionFive\",\r\n \"quantity\": 13\r\n },\r\n {\r\n \"name\": \"productNameSix\",\r\n \"picture\": \"pictureSix\",\r\n \"price\": 22,\r\n \"rating\": 3.6,\r\n \"vendorName\": \"vendorTwo\",\r\n \"category\": \"categoryThree\",\r\n \"description\": \"descriptionSix\",\r\n \"quantity\": 15\r\n },\r\n {\r\n \"name\": \"productNameSeven\",\r\n \"picture\": \"pictureSeven\",\r\n \"price\": 1511,\r\n \"rating\": 4.2,\r\n \"vendorName\": \"vendorFour\",\r\n \"category\": \"categoryFour\",\r\n \"description\": \"descriptionSeven\",\r\n \"quantity\": 31\r\n },\r\n {\r\n \"name\": \"productNameEight\",\r\n \"picture\": \"pictureEight\",\r\n \"price\": 132,\r\n \"rating\": 2.4,\r\n \"vendorName\": \"vendorOne\",\r\n \"category\": \"categoryOne\",\r\n \"description\": \"descriptionEight\",\r\n \"quantity\": 69\r\n },\r\n {\r\n \"name\": \"productNameNine\",\r\n \"picture\": \"pictureNine\",\r\n \"price\": 443,\r\n \"rating\": 3.4,\r\n \"vendorName\": \"vendorTwo\",\r\n \"category\": \"categoryThree\",\r\n \"description\": \"descriptionNine\",\r\n \"quantity\": 70\r\n },\r\n {\r\n \"name\": \"productNameTen\",\r\n \"picture\": \"pictureTen\",\r\n \"price\": 2223,\r\n \"rating\": 2.4,\r\n \"vendorName\": \"vendorTwo\",\r\n \"category\": \"categoryOne\",\r\n \"description\": \"descriptionTen\",\r\n \"quantity\": 72\r\n }\r\n]\r\n",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "http://localhost:59326/products",
|
|
"protocol": "http",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "59326",
|
|
"path": [
|
|
"products"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Get all products",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "http://localhost:59326/product",
|
|
"protocol": "http",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "59326",
|
|
"path": [
|
|
"product"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Get product by id",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "http://localhost:59326/product/3",
|
|
"protocol": "http",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "59326",
|
|
"path": [
|
|
"product",
|
|
"3"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Update Product",
|
|
"request": {
|
|
"method": "PUT",
|
|
"header": [],
|
|
"body": {
|
|
"mode": "raw",
|
|
"raw": "{\r\n \"name\": \"ProductNameTen\",\r\n \"picture\": \"pictureTen\",\r\n \"price\": 2223,\r\n \"rating\": 2.4,\r\n \"vendorName\": \"vendorTwo\",\r\n \"category\": \"categoryOne\",\r\n \"description\": \"descriptionTen\",\r\n \"quantity\": 72\r\n }",
|
|
"options": {
|
|
"raw": {
|
|
"language": "json"
|
|
}
|
|
}
|
|
},
|
|
"url": {
|
|
"raw": "http://localhost:59326/product/10",
|
|
"protocol": "http",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "59326",
|
|
"path": [
|
|
"product",
|
|
"10"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Delete product by id",
|
|
"request": {
|
|
"method": "DELETE",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "http://localhost:59326/product/10",
|
|
"protocol": "http",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "59326",
|
|
"path": [
|
|
"product",
|
|
"10"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "get products by category",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "http://localhost:59326/product/category/categoryOne",
|
|
"protocol": "http",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "59326",
|
|
"path": [
|
|
"product",
|
|
"category",
|
|
"categoryOne"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Get product quantity",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "http://localhost:59326/product/quantity/3",
|
|
"protocol": "http",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "59326",
|
|
"path": [
|
|
"product",
|
|
"quantity",
|
|
"3"
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
},
|
|
{
|
|
"name": "Product search",
|
|
"request": {
|
|
"method": "GET",
|
|
"header": [],
|
|
"url": {
|
|
"raw": "http://localhost:59326/product/search?q=productNamet",
|
|
"protocol": "http",
|
|
"host": [
|
|
"localhost"
|
|
],
|
|
"port": "59326",
|
|
"path": [
|
|
"product",
|
|
"search"
|
|
],
|
|
"query": [
|
|
{
|
|
"key": "q",
|
|
"value": "productNamet"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"response": []
|
|
}
|
|
]
|
|
}
|