northwind-rest-api
Version:
Local REST API Exposing Northwind Database.
979 lines • 19 kB
JSON
{
"info": {
"_postman_id": "32e977b6-a734-406d-a7b3-e280c6159ace",
"name": "Northwind",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "881012"
},
"item": [
{
"name": "Auth",
"item": [
{
"name": "Register",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"firstName\": \"Moishe\",\r\n \"lastName\": \"Ufnik\",\r\n \"email\": \"moishe2@gmail.com\",\r\n \"password\": \"123456\",\r\n \"role\": \"Admi2n\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:3030/api/register",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"register"
]
}
},
"response": []
},
{
"name": "Login",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"email\": \"lisa@gmail.com\",\r\n \"password\": \"123456\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:3030/api/login",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"login"
]
}
},
"response": []
},
{
"name": "Refresh Token",
"request": {
"method": "POST",
"header": [],
"url": {
"raw": "http://localhost:3030/api/refresh-token",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"refresh-token"
]
}
},
"response": []
}
]
},
{
"name": "Products",
"item": [
{
"name": "Get All Products",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3030/api/products",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"products"
]
}
},
"response": []
},
{
"name": "Get One Product",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3030/api/products/1",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"products",
"1"
]
}
},
"response": []
},
{
"name": "Get Product Image",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3030/api/products/images/01a5a6d5-6cc4-4e72-8f5d-e44efd3bc3d7.jpg",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"products",
"images",
"01a5a6d5-6cc4-4e72-8f5d-e44efd3bc3d7.jpg"
]
}
},
"response": []
},
{
"name": "Add Product",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "name",
"value": "Falafel",
"type": "text"
},
{
"key": "price",
"value": "10",
"type": "text"
},
{
"key": "stock",
"value": "50",
"type": "text"
},
{
"key": "image",
"value": "",
"type": "file"
}
]
},
"url": {
"raw": "http://localhost:3030/api/products",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"products"
]
}
},
"response": []
},
{
"name": "Update Product",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "name",
"value": "Shawarma",
"type": "text"
},
{
"key": "price",
"value": "20",
"type": "text"
},
{
"key": "stock",
"value": "100",
"type": "text"
},
{
"key": "image",
"value": "",
"type": "file"
}
]
},
"url": {
"raw": "http://localhost:3030/api/products/78",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"products",
"78"
]
}
},
"response": []
},
{
"name": "Delete Product",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://localhost:3030/api/products/78",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"products",
"78"
]
}
},
"response": []
},
{
"name": "Get Top Three Products",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3030/api/products/top-three",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"products",
"top-three"
]
}
},
"response": []
},
{
"name": "Get Out-Of-Stock Products",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3030/api/products/out-of-stock",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"products",
"out-of-stock"
]
}
},
"response": []
}
]
},
{
"name": "Employees",
"item": [
{
"name": "Get All Employees",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3030/api/employees",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"employees"
]
}
},
"response": []
},
{
"name": "Get One Employee",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3030/api/employees/1",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"employees",
"1"
]
}
},
"response": []
},
{
"name": "Get Employee Image",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3030/api/employees/images/01a5f7d1-42e8-4f71-83c4-58e86751b272.jpg",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"employees",
"images",
"01a5f7d1-42e8-4f71-83c4-58e86751b272.jpg"
]
}
},
"response": []
},
{
"name": "Add Employee",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "firstName",
"value": "Bart",
"type": "text"
},
{
"key": "lastName",
"value": "Simpson",
"type": "text"
},
{
"key": "title",
"value": "Student",
"type": "text"
},
{
"key": "country",
"value": "USA",
"type": "text"
},
{
"key": "city",
"value": "Springfield",
"type": "text"
},
{
"key": "birthDate",
"value": "1979-12-17",
"type": "text"
},
{
"key": "image",
"value": "",
"type": "file"
}
]
},
"url": {
"raw": "http://localhost:3030/api/employees",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"employees"
]
}
},
"response": []
},
{
"name": "Update Employee",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "firstName",
"value": "Bartholomew",
"type": "text"
},
{
"key": "lastName",
"value": "Simpson",
"type": "text"
},
{
"key": "title",
"value": "Student",
"type": "text"
},
{
"key": "country",
"value": "USA",
"type": "text"
},
{
"key": "city",
"value": "Springfield",
"type": "text"
},
{
"key": "birthDate",
"value": "1979-12-17",
"type": "text"
},
{
"key": "image",
"value": "",
"type": "file"
}
]
},
"url": {
"raw": "http://localhost:3030/api/employees/10",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"employees",
"10"
]
}
},
"response": []
},
{
"name": "Delete Employee",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://localhost:3030/api/employees/10",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"employees",
"10"
]
}
},
"response": []
}
]
},
{
"name": "Suppliers",
"item": [
{
"name": "Get All Suppliers",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3030/api/suppliers",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"suppliers"
]
}
},
"response": []
},
{
"name": "Get One Supplier",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3030/api/suppliers/1",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"suppliers",
"1"
]
}
},
"response": []
},
{
"name": "Get Supplier Image",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3030/api/suppliers/images/01a57fe7-0f02-45e3-968b-65264020dd46.jpg",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"suppliers",
"images",
"01a57fe7-0f02-45e3-968b-65264020dd46.jpg"
]
}
},
"response": []
},
{
"name": "Add Supplier",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "company",
"value": "John Bryce Cuisine",
"type": "text"
},
{
"key": "country",
"value": "Israel",
"type": "text"
},
{
"key": "city",
"value": "Tel Aviv",
"type": "text"
},
{
"key": "address",
"value": "Homa Umigdal 29",
"type": "text"
},
{
"key": "phone",
"value": "037100123",
"type": "text"
},
{
"key": "image",
"type": "file",
"src": "/C:/Docs/04 - Pictures/06 - Funny/002.jpg"
}
]
},
"url": {
"raw": "http://localhost:3030/api/suppliers",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"suppliers"
]
}
},
"response": []
},
{
"name": "Update Supplier",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "company",
"value": "John Bryce Cuisine 2",
"type": "text"
},
{
"key": "country",
"value": "Israel",
"type": "text"
},
{
"key": "city",
"value": "Tel Aviv",
"type": "text"
},
{
"key": "address",
"value": "Homa Umigdal 29",
"type": "text"
},
{
"key": "phone",
"value": "037100123",
"type": "text"
},
{
"key": "image",
"type": "file",
"src": "/C:/Docs/04 - Pictures/06 - Funny/011.jpg"
}
]
},
"url": {
"raw": "http://localhost:3030/api/suppliers\\30",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"suppliers",
"30"
]
}
},
"response": []
},
{
"name": "Delete Supplier",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://localhost:3030/api/suppliers/30",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"suppliers",
"30"
]
}
},
"response": []
}
]
},
{
"name": "Categories",
"item": [
{
"name": "Get All Categories",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3030/api/categories",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"categories"
]
}
},
"response": []
},
{
"name": "Get One Category",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3030/api/categories/1",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"categories",
"1"
]
}
},
"response": []
},
{
"name": "Get Category Image",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3030/api/categories/images/01a1f85a-335e-4797-82b4-4c53d3aacb73.jpg",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"categories",
"images",
"01a1f85a-335e-4797-82b4-4c53d3aacb73.jpg"
]
}
},
"response": []
},
{
"name": "Add Category",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "name",
"value": "Israeli Food",
"type": "text"
},
{
"key": "description",
"value": "Amazing and tasty Israeli food",
"type": "text"
},
{
"key": "image",
"type": "file",
"src": "/C:/Docs/04 - Pictures/06 - Funny/017.jpg"
}
]
},
"url": {
"raw": "http://localhost:3030/api/categories",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"categories"
]
}
},
"response": []
},
{
"name": "Update Category",
"request": {
"method": "PUT",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "name",
"value": "Israeli Amazing Food",
"type": "text"
},
{
"key": "description",
"value": "Amazing and tasty Israeli food",
"type": "text"
},
{
"key": "image",
"type": "file",
"src": "/C:/Docs/04 - Pictures/06 - Funny/005.jpg"
}
]
},
"url": {
"raw": "http://localhost:3030/api/categories/9",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"categories",
"9"
]
}
},
"response": []
},
{
"name": "Delete Category",
"request": {
"method": "DELETE",
"header": [],
"url": {
"raw": "http://localhost:3030/api/categories/9",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"categories",
"9"
]
}
},
"response": []
}
]
},
{
"name": "Contact Us",
"item": [
{
"name": "Add Contact Us Message",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\r\n \"name\": \"Moishe\",\r\n \"email\": \"moishe@gmail.com\",\r\n \"phone\": \"05392993993\",\r\n \"message\": \"Testing\"\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://localhost:3030/api/contact-us",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"contact-us"
]
}
},
"response": []
},
{
"name": "Get All Contact Us Messages",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "http://localhost:3030/api/contact-us",
"protocol": "http",
"host": [
"localhost"
],
"port": "3030",
"path": [
"api",
"contact-us"
]
}
},
"response": []
}
]
}
],
"auth": {
"type": "bearer",
"bearer": [
{
"key": "token",
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoxLCJmaXJzdE5hbWUiOiJMaXNhIiwibGFzdE5hbWUiOiJTaW1wc29uIiwiZW1haWwiOiJsaXNhQGdtYWlsLmNvbSIsInJvbGUiOiJBZG1pbiJ9LCJpYXQiOjE2OTM0Mjg1MzAsImV4cCI6MTY5MzQ0NjUzMH0.LXg7heaWdCEy3H0gHWHfAoiw3vVsCCzTPIYoIuuu9ZU",
"type": "string"
}
]
},
"event": [
{
"listen": "prerequest",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
""
]
}
}
]
}