From 97c1a47118d0580987386fed2a0f2702dc5ed28b Mon Sep 17 00:00:00 2001 From: Baris0 Date: Sun, 17 Jul 2022 00:32:54 +0300 Subject: [PATCH] api.postman_collection.json added --- api.postman_collection.json | 540 ++++++++++++++++++++++++++++++++++++ 1 file changed, 540 insertions(+) create mode 100644 api.postman_collection.json diff --git a/api.postman_collection.json b/api.postman_collection.json new file mode 100644 index 0000000..9806454 --- /dev/null +++ b/api.postman_collection.json @@ -0,0 +1,540 @@ +{ + "info": { + "_postman_id": "c5f81cd3-9895-443f-99c0-14431f02ec0c", + "name": "e-commerce api", + "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" + }, + "item": [ + { + "name": "localhost:8080/api/products/getCart", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "localhost:8080/api/products/getCart", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "api", + "products", + "getCart" + ] + } + }, + "response": [] + }, + { + "name": "localhost:8080/api/products/getAll", + "protocolProfileBehavior": { + "disableBodyPruning": true + }, + "request": { + "method": "GET", + "header": [], + "body": { + "mode": "raw", + "raw": "", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:8080/api/products/getAll", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "api", + "products", + "getAll" + ] + } + }, + "response": [] + }, + { + "name": "localhost:8080/api/products/addToCart/1", + "request": { + "method": "POST", + "header": [], + "url": { + "raw": "localhost:8080/api/products/addToCart/1", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "api", + "products", + "addToCart", + "1" + ] + } + }, + "response": [] + }, + { + "name": "localhost:8080/api/auth/register", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userName\": \"baris\",\n \"password\": \"123\",\n \"email\": \"barisseckin@ogr.bandirma.edu.tr\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:8080/api/auth/register", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "api", + "auth", + "register" + ] + } + }, + "response": [] + }, + { + "name": "localhost:8080/api/auth/login", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userName\": \"barisseckin\",\n \"password\": \"123\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:8080/api/auth/login", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "api", + "auth", + "login" + ] + } + }, + "response": [] + }, + { + "name": "localhost:8080/api/users/getAll", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "localhost:8080/api/users/getAll", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "api", + "users", + "getAll" + ] + } + }, + "response": [] + }, + { + "name": "localhost:8080/api/auth/deleteByUser", + "request": { + "method": "DELETE", + "header": [ + { + "key": "Authorization", + "value": "Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiaWF0IjoxNjUyMDIzNzA3LCJleHAiOjE2NTIwMjM3MDh9._BW9buad0GgiMRM2tk75kizhBzFpO-E8dF7qGBih208P4-0SKoeUmL4YIUtYllFnSH7swrZs9Ef2ejI0CKmZJQ", + "type": "default" + } + ], + "body": { + "mode": "raw", + "raw": "{\n \"password\": \"123\",\n \"email\": \"barisseckin0@gmail.com\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:8080/api/auth/deleteByUser", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "api", + "auth", + "deleteByUser" + ] + } + }, + "response": [] + }, + { + "name": "localhost:8080/api/products/add", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"productName\": \"Razer Mouse\",\n \"productBrand\": \"Razer\",\n \"productDetails\": \"White Color 6400 DPI\", \n \"productPrice\": 199,\n \"stock\": 11,\n \"productImageUrl\": \"Url\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:8080/api/products/add", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "api", + "products", + "add" + ] + } + }, + "response": [] + }, + { + "name": "localhost:8080/api/categorys/getAll", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "localhost:8080/api/categorys/getAll", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "api", + "categorys", + "getAll" + ] + } + }, + "response": [] + }, + { + "name": "localhost:8080/api/categorys/add", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"categoryName\": \"Test\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:8080/api/categorys/add", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "api", + "categorys", + "add" + ] + } + }, + "response": [] + }, + { + "name": "localhost:8080/api/seller/add", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"name\" : \"Apple\",\n \"profilePictureUrl\" : \"url\",\n \"eMail\" : \"apple@gmail.com\" \n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:8080/api/seller/add", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "api", + "seller", + "add" + ] + } + }, + "response": [] + }, + { + "name": "localhost:8080/api/seller/getAll", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "localhost:8080/api/seller/getAll", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "api", + "seller", + "getAll" + ] + } + }, + "response": [] + }, + { + "name": "localhost:8080/api/products/confirmCart", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\": 1,\n \"cardNumber\": \"4766 1902 7659 7812\",\n \"cvv\": 234,\n \"expirationDate\" : \"02/12\",\n \"nameAndSurname\" : \"Melih\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:8080/api/products/confirmCart", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "api", + "products", + "confirmCart" + ] + } + }, + "response": [] + }, + { + "name": "localhost:8080/api/email/pushEmailToAllUser", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"body\" : \"test service\",\n \"title\" : \"test 2\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:8080/api/email/pushEmailToAllUser", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "api", + "email", + "pushEmailToAllUser" + ] + } + }, + "response": [] + }, + { + "name": "localhost:8080/api/promo-code/create-code", + "request": { + "method": "POST", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"userId\" : 1,\n \"amount\" : 500,\n \"year\" : 2022,\n \"month\" : 8,\n \"date\" : 10\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:8080/api/promo-code/create-code", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "api", + "promo-code", + "create-code" + ] + } + }, + "response": [] + }, + { + "name": "localhost:8080/api/products/removeFromCart/5", + "request": { + "method": "DELETE", + "header": [], + "url": { + "raw": "localhost:8080/api/products/removeFromCart/5", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "api", + "products", + "removeFromCart", + "5" + ] + } + }, + "response": [] + }, + { + "name": "localhost:8080/api/products/update-product-details", + "request": { + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"productId\" : 1,\n \"productDetails\" : \"test\"\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:8080/api/products/update-product-details", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "api", + "products", + "update-product-details" + ] + } + }, + "response": [] + }, + { + "name": "localhost:8080/api/seller/comments/getAll", + "request": { + "method": "GET", + "header": [], + "url": { + "raw": "localhost:8080/api/seller/comments/getAll", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "api", + "seller", + "comments", + "getAll" + ] + } + }, + "response": [] + }, + { + "name": "localhost:8080/api/products/addFavorite/1", + "request": { + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:8080/api/products/addFavorite/1", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "api", + "products", + "addFavorite", + "1" + ] + } + }, + "response": [] + }, + { + "name": "localhost:8080/api/products/removeFromFavorite", + "request": { + "method": "PUT", + "header": [], + "body": { + "mode": "raw", + "raw": "{\n \"id\" : 1\n}", + "options": { + "raw": { + "language": "json" + } + } + }, + "url": { + "raw": "localhost:8080/api/products/removeFromFavorite/1", + "host": [ + "localhost" + ], + "port": "8080", + "path": [ + "api", + "products", + "removeFromFavorite", + "1" + ] + } + }, + "response": [] + } + ] +} \ No newline at end of file