-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathForsitEcommerce.json
1 lines (1 loc) · 6.65 KB
/
ForsitEcommerce.json
1
{"name":"ForsitEcommerce","v":1,"folders":[],"requests":[{"auth":{"authActive":true,"authType":"none"},"params":[],"headers":[],"body":{"contentType":"application/json","body":"{\n \"first_name\": \"Muhammad Fahad\",\n \"last_name\": \"Baig\",\n \"email\": \"[email protected]\",\n \"password\": \"Hello123!@\",\n \"timezone\": \"Asia/Karachi\"\n}"},"endpoint":"http://127.0.0.1:8000/ecommerce/v1/register_user","name":"Register User","testScript":"","v":"1","method":"PUT","preRequestScript":""},{"endpoint":"http://127.0.0.1:8000/ecommerce/v1/login_user","name":"Login User","params":[],"preRequestScript":"","method":"POST","v":"1","testScript":"","auth":{"authType":"none","authActive":true},"headers":[],"body":{"contentType":"application/json","body":"{\n \"email\": \"[email protected]\",\n \"password\": \"Hello123!@\"\n}"}},{"method":"PUT","v":"1","preRequestScript":"","testScript":"","auth":{"authActive":true,"authType":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2OTYyNjQyNzgsInR5cCI6ImFjY2VzcyIsInVzZXJfaWQiOjEsImVtYWlsIjoiZmFkaUBmYWhhZGJhaWcuY29tIiwiZmlyc3RfbmFtZSI6Ik11aGFtbWFkIEZhaGFkIiwibGFzdF9uYW1lIjoiQmFpZyJ9.hSLEwfgYs1kxlIHrSEEIwyK5jIyK-TPCWa4IR_BrtyU"},"endpoint":"http://127.0.0.1:8000/ecommerce/v1/create_product","name":"Create Product","headers":[],"params":[],"body":{"contentType":"application/json","body":"{\n \"product_name\": \"Geforce RTX 3090\",\n \"description\": \"A very pricey nvidia gpu\",\n \"price\": \"1499.99\",\n \"category_id\": 1\n \n}"}},{"testScript":"","endpoint":"http://127.0.0.1:8000/ecommerce/v1/add_inventory","v":"1","params":[],"auth":{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2OTYyNjk2ODksInR5cCI6ImFjY2VzcyIsInVzZXJfaWQiOjEsImVtYWlsIjoiZmFkaUBmYWhhZGJhaWcuY29tIiwiZmlyc3RfbmFtZSI6Ik11aGFtbWFkIEZhaGFkIiwibGFzdF9uYW1lIjoiQmFpZyJ9.enBZgtM2HPe9byn8JArmnL_OuCj8ppCLfpwoMlRBNOo","authActive":true,"authType":"bearer"},"body":{"contentType":"application/json","body":"{\n \"product_id\": 1,\n \"quantity\": 100\n}"},"headers":[],"method":"PUT","name":"Add Inventory","preRequestScript":""},{"endpoint":"http://127.0.0.1:8000/ecommerce/v1/get_product","preRequestScript":"","auth":{"authActive":true,"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2OTYyNjk2ODksInR5cCI6ImFjY2VzcyIsInVzZXJfaWQiOjEsImVtYWlsIjoiZmFkaUBmYWhhZGJhaWcuY29tIiwiZmlyc3RfbmFtZSI6Ik11aGFtbWFkIEZhaGFkIiwibGFzdF9uYW1lIjoiQmFpZyJ9.enBZgtM2HPe9byn8JArmnL_OuCj8ppCLfpwoMlRBNOo","authType":"bearer"},"testScript":"","headers":[],"v":"1","name":"Get Product","params":[{"key":"product_id","value":"4","active":true}],"method":"GET","body":{"body":"{\n \"product_id\": 4\n}","contentType":"application/json"}},{"body":{"contentType":"application/json","body":"{\n \"product_id\": 4\n}"},"v":"1","auth":{"authType":"bearer","authActive":true,"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2OTYyNzExNjIsInR5cCI6ImFjY2VzcyIsInVzZXJfaWQiOjEsImVtYWlsIjoiZmFkaUBmYWhhZGJhaWcuY29tIiwiZmlyc3RfbmFtZSI6Ik11aGFtbWFkIEZhaGFkIiwibGFzdF9uYW1lIjoiQmFpZyJ9.WIYYTtksZkqtbEmULUidGU3xSZbhk4sXdsim6mspwZ8"},"headers":[],"testScript":"","method":"GET","endpoint":"http://127.0.0.1:8000/ecommerce/v1/get_low_stock_products","preRequestScript":"","params":[],"name":"Get Low Stock Products"},{"body":{"contentType":"application/json","body":"{\n \"items\": [\n {\n \"product_id\": 1,\n \"quantity\": 5\n },\n {\n \"product_id\": 4,\n \"quantity\": 5\n }\n ]\n}"},"params":[],"endpoint":"http://127.0.0.1:8000/ecommerce/v1/purchase_products","preRequestScript":"","name":"Purchase Products","headers":[],"auth":{"authActive":true,"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2OTYxNzQwODgsInR5cCI6ImFjY2VzcyIsInVzZXJfaWQiOjEsImVtYWlsIjoiZmFkaUBmYWhhZGJhaWcuY29tIiwiZmlyc3RfbmFtZSI6Ik11aGFtbWFkIEZhaGFkIiwibGFzdF9uYW1lIjoiQmFpZyJ9._xDgE59xzZhfieom1wIyMd1wxgLyCi24QebVXa_pmow","authType":"bearer"},"method":"POST","testScript":"","v":"1"},{"endpoint":"http://127.0.0.1:8000/ecommerce/v1/create_category","headers":[],"params":[],"auth":{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2OTYyNjQyNzgsInR5cCI6ImFjY2VzcyIsInVzZXJfaWQiOjEsImVtYWlsIjoiZmFkaUBmYWhhZGJhaWcuY29tIiwiZmlyc3RfbmFtZSI6Ik11aGFtbWFkIEZhaGFkIiwibGFzdF9uYW1lIjoiQmFpZyJ9.hSLEwfgYs1kxlIHrSEEIwyK5jIyK-TPCWa4IR_BrtyU","authType":"bearer","authActive":true},"body":{"body":"{\n \"category_name\": \"Electronics\",\n \"category_slug\": \"electronics\"\n}","contentType":"application/json"},"method":"PUT","testScript":"","preRequestScript":"","name":"Create Category","v":"1"},{"body":{"contentType":"application/json","body":"{\n \"category_name\": \"Electronics\",\n \"category_slug\": \"electronics\"\n}"},"params":[],"endpoint":"http://127.0.0.1:8000/ecommerce/v1/get_categories","auth":{"authType":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2OTYzMjk0ODksInR5cCI6ImFjY2VzcyIsInVzZXJfaWQiOjEsImVtYWlsIjoiZmFkaUBmYWhhZGJhaWcuY29tIiwiZmlyc3RfbmFtZSI6Ik11aGFtbWFkIEZhaGFkIiwibGFzdF9uYW1lIjoiQmFpZyJ9.8P7BPshHJZND_-6WJMJaURNGzpHXaIbc4IG_lEzhyvw","authActive":true},"name":"Get Categories","preRequestScript":"","method":"GET","testScript":"","headers":[],"v":"1"},{"preRequestScript":"","auth":{"authType":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2OTYyNjkxMTksInR5cCI6ImFjY2VzcyIsInVzZXJfaWQiOjEsImVtYWlsIjoiZmFkaUBmYWhhZGJhaWcuY29tIiwiZmlyc3RfbmFtZSI6Ik11aGFtbWFkIEZhaGFkIiwibGFzdF9uYW1lIjoiQmFpZyJ9.d59f79e4KjbK5S9ujJwgKF7J1--BMGaOTwxDKyESqnw","authActive":true},"name":"Get Products","headers":[],"endpoint":"http://127.0.0.1:8000/ecommerce/v1/get_products","body":{"contentType":"application/json","body":"{\n \"product_name\": \"Geforce RTX 3090\",\n \"description\": \"A very pricey nvidia gpu\",\n \"price\": \"1499.99\",\n \"category_id\": 1\n \n}"},"v":"1","params":[{"key":"category_ids","value":"[1,2,3]","active":true},{"key":"page","active":true,"value":"1"}],"method":"GET","testScript":""},{"name":"Get Sales Data","method":"GET","preRequestScript":"","auth":{"authType":"bearer","token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2OTYzMjI3MTgsInR5cCI6ImFjY2VzcyIsInVzZXJfaWQiOjEsImVtYWlsIjoiZmFkaUBmYWhhZGJhaWcuY29tIiwiZmlyc3RfbmFtZSI6Ik11aGFtbWFkIEZhaGFkIiwibGFzdF9uYW1lIjoiQmFpZyJ9.3cSUAZQXCY9dN4UI60d6wUgcxri4uciaOJQJkCEsOv8","authActive":true},"body":{"contentType":"application/json","body":"{\n \"product_name\": \"Geforce RTX 3090\",\n \"description\": \"A very pricey nvidia gpu\",\n \"price\": \"1499.99\",\n \"category_id\": 1\n \n}"},"headers":[],"params":[{"key":"start_date","value":"2023-01-01 00:00:00","active":true},{"key":"end_date","value":"2023-12-31 00:00:00","active":true},{"key":"include_sales_items","value":"0","active":true}],"testScript":"","endpoint":"http://127.0.0.1:8000/ecommerce/v1/get_sales_data","v":"1"}]}