{ "info": { "_postman_id": "7e2d0043-79fc-4cc2-8d76-51ae6348e7a1", "name": "SmartMart API", "description": "API para gerenciamento interno de produtos, categorias e vendas da SmartMart Solutions.", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "3598780" }, "item": [ { "name": "products", "item": [ { "name": "{product_id}", "item": [ { "name": "Update Product", "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"brand\": \"Teste\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/products/1", "host": [ "{{baseUrl}}" ], "path": [ "products", "1" ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"\",\n \"description\": \"\",\n \"price\": \"\",\n \"category_id\": \"\",\n \"brand\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/products/:product_id", "host": [ "{{baseUrl}}" ], "path": [ "products", ":product_id" ], "variable": [ { "key": "product_id", "value": "", "description": "(Required) " } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"name\": \"\",\n \"description\": \"\",\n \"price\": \"\",\n \"category_id\": \"\",\n \"brand\": \"\",\n \"id\": \"\"\n}" }, { "name": "Validation Error", "originalRequest": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"\",\n \"description\": \"\",\n \"price\": \"\",\n \"category_id\": \"\",\n \"brand\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/products/:product_id", "host": [ "{{baseUrl}}" ], "path": [ "products", ":product_id" ], "variable": [ { "key": "product_id", "value": "", "description": "(Required) " } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n }\n ]\n}" } ] }, { "name": "Delete Product", "request": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/products/:product_id", "host": [ "{{baseUrl}}" ], "path": [ "products", ":product_id" ], "variable": [ { "key": "product_id", "value": "", "description": "(Required) " } ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/products/:product_id", "host": [ "{{baseUrl}}" ], "path": [ "products", ":product_id" ], "variable": [ { "key": "product_id", "value": "", "description": "(Required) " } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{}" }, { "name": "Validation Error", "originalRequest": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/products/:product_id", "host": [ "{{baseUrl}}" ], "path": [ "products", ":product_id" ], "variable": [ { "key": "product_id", "value": "", "description": "(Required) " } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n }\n ]\n}" } ] } ] }, { "name": "Get Products", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/products?sort=asc&sort_by=id", "host": [ "{{baseUrl}}" ], "path": [ "products" ], "query": [ { "key": "sort", "value": "asc" }, { "key": "sort_by", "value": "id" } ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/products?category_id=&title=&sort=asc&sort_by=name&skip=0&limit=10", "host": [ "{{baseUrl}}" ], "path": [ "products" ], "query": [ { "key": "category_id", "value": "" }, { "key": "title", "value": "" }, { "key": "sort", "value": "asc" }, { "key": "sort_by", "value": "name" }, { "key": "skip", "value": "0" }, { "key": "limit", "value": "10" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"items\": [\n {\n \"name\": \"\",\n \"description\": \"\",\n \"price\": \"\",\n \"category_id\": \"\",\n \"brand\": \"\",\n \"id\": \"\"\n },\n {\n \"name\": \"\",\n \"description\": \"\",\n \"price\": \"\",\n \"category_id\": \"\",\n \"brand\": \"\",\n \"id\": \"\"\n }\n ],\n \"total\": \"\"\n}" }, { "name": "Validation Error", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/products?category_id=&title=&sort=asc&sort_by=name&skip=0&limit=10", "host": [ "{{baseUrl}}" ], "path": [ "products" ], "query": [ { "key": "category_id", "value": "" }, { "key": "title", "value": "" }, { "key": "sort", "value": "asc" }, { "key": "sort_by", "value": "name" }, { "key": "skip", "value": "0" }, { "key": "limit", "value": "10" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n }\n ]\n}" } ] }, { "name": "Create Product", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"\",\n \"description\": \"\",\n \"price\": \"\",\n \"category_id\": \"\",\n \"brand\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/products", "host": [ "{{baseUrl}}" ], "path": [ "products" ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"\",\n \"description\": \"\",\n \"price\": \"\",\n \"category_id\": \"\",\n \"brand\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/products", "host": [ "{{baseUrl}}" ], "path": [ "products" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"name\": \"\",\n \"description\": \"\",\n \"price\": \"\",\n \"category_id\": \"\",\n \"brand\": \"\",\n \"id\": \"\"\n}" }, { "name": "Validation Error", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"\",\n \"description\": \"\",\n \"price\": \"\",\n \"category_id\": \"\",\n \"brand\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/products", "host": [ "{{baseUrl}}" ], "path": [ "products" ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n }\n ]\n}" } ] }, { "name": "Upload Csv", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "multipart/form-data" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "file", "description": "(Required) ", "type": "file", "src": [] } ] }, "url": { "raw": "{{baseUrl}}/products/upload-csv", "host": [ "{{baseUrl}}" ], "path": [ "products", "upload-csv" ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "file", "value": "", "description": "(Required) ", "type": "text" } ] }, "url": { "raw": "{{baseUrl}}/products/upload-csv", "host": [ "{{baseUrl}}" ], "path": [ "products", "upload-csv" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{}" }, { "name": "Validation Error", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "formdata", "formdata": [ { "key": "file", "value": "", "description": "(Required) ", "type": "text" } ] }, "url": { "raw": "{{baseUrl}}/products/upload-csv", "host": [ "{{baseUrl}}" ], "path": [ "products", "upload-csv" ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n }\n ]\n}" } ] }, { "name": "Update Category Discount", "event": [ { "listen": "test", "script": { "exec": [ "var template = `\r", "\r", "\r", "\r", " \r", " \r", " \r", " \r", " \r", " \r", " \r", " {{#each response.updated_products}}\r", " \r", " \r", " \r", " \r", " \r", " \r", " {{/each}}\r", "
Product IDNamePriceCategory ID
{{product_id}}{{name}}{{price}}{{category_id}}
\r", "`;\r", "\r", "function constructVisualizerPayload() {\r", " return {response: pm.response.json()}\r", "}\r", "\r", "pm.visualizer.set(template, constructVisualizerPayload());" ], "type": "text/javascript", "packages": {} } } ], "request": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/products/categories/1/discount?discount_percentage=10", "host": [ "{{baseUrl}}" ], "path": [ "products", "categories", "1", "discount" ], "query": [ { "key": "discount_percentage", "value": "10", "description": "(Required) " } ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/products/categories/:category_id/discount?discount_percentage=", "host": [ "{{baseUrl}}" ], "path": [ "products", "categories", ":category_id", "discount" ], "query": [ { "key": "discount_percentage", "value": "" } ], "variable": [ { "key": "category_id", "value": "", "description": "(Required) " } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{}" }, { "name": "Validation Error", "originalRequest": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/products/categories/:category_id/discount?discount_percentage=", "host": [ "{{baseUrl}}" ], "path": [ "products", "categories", ":category_id", "discount" ], "query": [ { "key": "discount_percentage", "value": "" } ], "variable": [ { "key": "category_id", "value": "", "description": "(Required) " } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n }\n ]\n}" } ] } ] }, { "name": "categories", "item": [ { "name": "{category_id}", "item": [ { "name": "Update Category", "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"Televisores\",\n \"description\": \"TVs de alta definição e tecnologia avançada\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/categories/1", "host": [ "{{baseUrl}}" ], "path": [ "categories", "1" ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"\",\n \"description\": \"\",\n \"discount_percentage\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/categories/:category_id", "host": [ "{{baseUrl}}" ], "path": [ "categories", ":category_id" ], "variable": [ { "key": "category_id", "value": "", "description": "(Required) " } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"name\": \"\",\n \"description\": \"\",\n \"discount_percentage\": \"\",\n \"id\": \"\"\n}" }, { "name": "Validation Error", "originalRequest": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"\",\n \"description\": \"\",\n \"discount_percentage\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/categories/:category_id", "host": [ "{{baseUrl}}" ], "path": [ "categories", ":category_id" ], "variable": [ { "key": "category_id", "value": "", "description": "(Required) " } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n }\n ]\n}" } ] }, { "name": "Delete Category", "request": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/categories/:category_id", "host": [ "{{baseUrl}}" ], "path": [ "categories", ":category_id" ], "variable": [ { "key": "category_id", "value": "", "description": "(Required) " } ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/categories/:category_id", "host": [ "{{baseUrl}}" ], "path": [ "categories", ":category_id" ], "variable": [ { "key": "category_id", "value": "", "description": "(Required) " } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{}" }, { "name": "Validation Error", "originalRequest": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/categories/:category_id", "host": [ "{{baseUrl}}" ], "path": [ "categories", ":category_id" ], "variable": [ { "key": "category_id", "value": "", "description": "(Required) " } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n }\n ]\n}" } ] } ] }, { "name": "Get Categories", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/categories", "host": [ "{{baseUrl}}" ], "path": [ "categories" ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/categories?sort_by=name&sort_order=asc&skip=0&limit=10", "host": [ "{{baseUrl}}" ], "path": [ "categories" ], "query": [ { "key": "sort_by", "value": "name" }, { "key": "sort_order", "value": "asc" }, { "key": "skip", "value": "0" }, { "key": "limit", "value": "10" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"items\": [\n {\n \"name\": \"\",\n \"description\": \"\",\n \"discount_percentage\": \"\",\n \"id\": \"\"\n },\n {\n \"name\": \"\",\n \"description\": \"\",\n \"discount_percentage\": \"\",\n \"id\": \"\"\n }\n ],\n \"total\": \"\"\n}" }, { "name": "Validation Error", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/categories?sort_by=name&sort_order=asc&skip=0&limit=10", "host": [ "{{baseUrl}}" ], "path": [ "categories" ], "query": [ { "key": "sort_by", "value": "name" }, { "key": "sort_order", "value": "asc" }, { "key": "skip", "value": "0" }, { "key": "limit", "value": "10" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n }\n ]\n}" } ] }, { "name": "Create Category", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"\",\n \"description\": \"\",\n \"discount_percentage\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/categories/", "host": [ "{{baseUrl}}" ], "path": [ "categories", "" ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"\",\n \"description\": \"\",\n \"discount_percentage\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/categories/", "host": [ "{{baseUrl}}" ], "path": [ "categories", "" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"name\": \"\",\n \"description\": \"\",\n \"discount_percentage\": \"\",\n \"id\": \"\"\n}" }, { "name": "Validation Error", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"name\": \"\",\n \"description\": \"\",\n \"discount_percentage\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/categories/", "host": [ "{{baseUrl}}" ], "path": [ "categories", "" ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n }\n ]\n}" } ] } ] }, { "name": "sales", "item": [ { "name": "{sale_id}", "item": [ { "name": "Update Sale", "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"product_id\": \"\",\n \"quantity\": \"\",\n \"total_price\": \"\",\n \"date\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/sales/:sale_id", "host": [ "{{baseUrl}}" ], "path": [ "sales", ":sale_id" ], "variable": [ { "key": "sale_id", "value": "", "description": "(Required) " } ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"product_id\": \"\",\n \"quantity\": \"\",\n \"total_price\": \"\",\n \"date\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/sales/:sale_id", "host": [ "{{baseUrl}}" ], "path": [ "sales", ":sale_id" ], "variable": [ { "key": "sale_id", "value": "", "description": "(Required) " } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"product_id\": \"\",\n \"quantity\": \"\",\n \"total_price\": \"\",\n \"date\": \"\",\n \"id\": \"\"\n}" }, { "name": "Validation Error", "originalRequest": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"product_id\": \"\",\n \"quantity\": \"\",\n \"total_price\": \"\",\n \"date\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/sales/:sale_id", "host": [ "{{baseUrl}}" ], "path": [ "sales", ":sale_id" ], "variable": [ { "key": "sale_id", "value": "", "description": "(Required) " } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n }\n ]\n}" } ] }, { "name": "Delete Sale", "request": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/sales/:sale_id", "host": [ "{{baseUrl}}" ], "path": [ "sales", ":sale_id" ], "variable": [ { "key": "sale_id", "value": "", "description": "(Required) " } ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/sales/:sale_id", "host": [ "{{baseUrl}}" ], "path": [ "sales", ":sale_id" ], "variable": [ { "key": "sale_id", "value": "", "description": "(Required) " } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{}" }, { "name": "Validation Error", "originalRequest": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/sales/:sale_id", "host": [ "{{baseUrl}}" ], "path": [ "sales", ":sale_id" ], "variable": [ { "key": "sale_id", "value": "", "description": "(Required) " } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n }\n ]\n}" } ] } ] }, { "name": "Get Sales", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/sales?sort_by=id&sort_order=desc&days=10&skip=5&limit=10", "host": [ "{{baseUrl}}" ], "path": [ "sales" ], "query": [ { "key": "sort_by", "value": "id" }, { "key": "sort_order", "value": "desc" }, { "key": "days", "value": "10" }, { "key": "skip", "value": "5" }, { "key": "limit", "value": "10" } ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/sales?sort_by=total_price&sort_order=asc&days=365&skip=0&limit=10", "host": [ "{{baseUrl}}" ], "path": [ "sales" ], "query": [ { "key": "sort_by", "value": "total_price" }, { "key": "sort_order", "value": "asc" }, { "key": "days", "value": "365" }, { "key": "skip", "value": "0" }, { "key": "limit", "value": "10" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"items\": [\n {\n \"product_id\": \"\",\n \"quantity\": \"\",\n \"total_price\": \"\",\n \"date\": \"\",\n \"id\": \"\",\n \"profit\": \"\"\n },\n {\n \"product_id\": \"\",\n \"quantity\": \"\",\n \"total_price\": \"\",\n \"date\": \"\",\n \"id\": \"\",\n \"profit\": \"\"\n }\n ],\n \"total\": \"\"\n}" }, { "name": "Validation Error", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/sales?sort_by=total_price&sort_order=asc&days=365&skip=0&limit=10", "host": [ "{{baseUrl}}" ], "path": [ "sales" ], "query": [ { "key": "sort_by", "value": "total_price" }, { "key": "sort_order", "value": "asc" }, { "key": "days", "value": "365" }, { "key": "skip", "value": "0" }, { "key": "limit", "value": "10" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n }\n ]\n}" } ] }, { "name": "Create Sale", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"product_id\": \"\",\n \"quantity\": \"\",\n \"total_price\": \"\",\n \"date\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/sales/", "host": [ "{{baseUrl}}" ], "path": [ "sales", "" ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"product_id\": \"\",\n \"quantity\": \"\",\n \"total_price\": \"\",\n \"date\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/sales/", "host": [ "{{baseUrl}}" ], "path": [ "sales", "" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"product_id\": \"\",\n \"quantity\": \"\",\n \"total_price\": \"\",\n \"date\": \"\",\n \"id\": \"\"\n}" }, { "name": "Validation Error", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"product_id\": \"\",\n \"quantity\": \"\",\n \"total_price\": \"\",\n \"date\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/sales/", "host": [ "{{baseUrl}}" ], "path": [ "sales", "" ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n }\n ]\n}" } ] }, { "name": "Get Total Profit", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/sales/profit/total?days=365&product_id=", "host": [ "{{baseUrl}}" ], "path": [ "sales", "profit", "total" ], "query": [ { "key": "days", "value": "365", "description": "Número de dias para considerar (padrão: últimos 365 dias)" }, { "key": "product_id", "value": "", "description": "ID do produto para filtrar as vendas" } ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/sales/profit/total?days=365&product_id=", "host": [ "{{baseUrl}}" ], "path": [ "sales", "profit", "total" ], "query": [ { "key": "days", "value": "365" }, { "key": "product_id", "value": "" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{}" }, { "name": "Validation Error", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/sales/profit/total?days=365&product_id=", "host": [ "{{baseUrl}}" ], "path": [ "sales", "profit", "total" ], "query": [ { "key": "days", "value": "365" }, { "key": "product_id", "value": "" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n }\n ]\n}" } ] } ] }, { "name": "export", "item": [ { "name": "Export Products Csv", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/export/products", "host": [ "{{baseUrl}}" ], "path": [ "export", "products" ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/export/products", "host": [ "{{baseUrl}}" ], "path": [ "export", "products" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{}" } ] }, { "name": "Export Sales Csv", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/export/sales", "host": [ "{{baseUrl}}" ], "path": [ "export", "sales" ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/export/sales", "host": [ "{{baseUrl}}" ], "path": [ "export", "sales" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{}" } ] }, { "name": "Export Categories Csv", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/export/categories", "host": [ "{{baseUrl}}" ], "path": [ "export", "categories" ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/export/categories", "host": [ "{{baseUrl}}" ], "path": [ "export", "categories" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{}" } ] }, { "name": "Export Sales With Profit Csv", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/export/sales_with_profit", "host": [ "{{baseUrl}}" ], "path": [ "export", "sales_with_profit" ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/export/sales_with_profit", "host": [ "{{baseUrl}}" ], "path": [ "export", "sales_with_profit" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{}" } ] } ] }, { "name": "users", "item": [ { "name": "{user_id}", "item": [ { "name": "Update User", "request": { "method": "PUT", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"email\": \"\",\n \"username\": \"\",\n \"password\": \"\",\n \"role\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/users/:user_id", "host": [ "{{baseUrl}}" ], "path": [ "users", ":user_id" ], "variable": [ { "key": "user_id", "value": "", "description": "(Required) " } ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"email\": \"\",\n \"username\": \"\",\n \"password\": \"\",\n \"role\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/users/:user_id", "host": [ "{{baseUrl}}" ], "path": [ "users", ":user_id" ], "variable": [ { "key": "user_id", "value": "", "description": "(Required) " } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{}" }, { "name": "Validation Error", "originalRequest": { "method": "PUT", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"email\": \"\",\n \"username\": \"\",\n \"password\": \"\",\n \"role\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/users/:user_id", "host": [ "{{baseUrl}}" ], "path": [ "users", ":user_id" ], "variable": [ { "key": "user_id", "value": "", "description": "(Required) " } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n }\n ]\n}" } ] }, { "name": "Delete User", "request": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/users/:user_id", "host": [ "{{baseUrl}}" ], "path": [ "users", ":user_id" ], "variable": [ { "key": "user_id", "value": "", "description": "(Required) " } ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/users/:user_id", "host": [ "{{baseUrl}}" ], "path": [ "users", ":user_id" ], "variable": [ { "key": "user_id", "value": "", "description": "(Required) " } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{}" }, { "name": "Validation Error", "originalRequest": { "method": "DELETE", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/users/:user_id", "host": [ "{{baseUrl}}" ], "path": [ "users", ":user_id" ], "variable": [ { "key": "user_id", "value": "", "description": "(Required) " } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n }\n ]\n}" } ] } ] }, { "name": "Create User", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"email\": \"\",\n \"username\": \"\",\n \"password\": \"\",\n \"role\": \"viewer\",\n \"created_at\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/users", "host": [ "{{baseUrl}}" ], "path": [ "users" ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"email\": \"\",\n \"username\": \"\",\n \"password\": \"\",\n \"role\": \"viewer\",\n \"created_at\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/users", "host": [ "{{baseUrl}}" ], "path": [ "users" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"email\": \"\",\n \"username\": \"\",\n \"id\": \"\",\n \"hashed_password\": \"\",\n \"role\": \"viewer\",\n \"created_at\": \"\"\n}" }, { "name": "Validation Error", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"email\": \"\",\n \"username\": \"\",\n \"password\": \"\",\n \"role\": \"viewer\",\n \"created_at\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/users", "host": [ "{{baseUrl}}" ], "path": [ "users" ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n }\n ]\n}" } ] }, { "name": "Get Users", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/users?sort=asc&sort_by=username&skip=0&limit=10", "host": [ "{{baseUrl}}" ], "path": [ "users" ], "query": [ { "key": "sort", "value": "asc" }, { "key": "sort_by", "value": "username" }, { "key": "skip", "value": "0" }, { "key": "limit", "value": "10" } ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/users?sort=asc&sort_by=username&skip=0&limit=10", "host": [ "{{baseUrl}}" ], "path": [ "users" ], "query": [ { "key": "sort", "value": "asc" }, { "key": "sort_by", "value": "username" }, { "key": "skip", "value": "0" }, { "key": "limit", "value": "10" } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"items\": [\n {\n \"email\": \"\",\n \"username\": \"\",\n \"id\": \"\",\n \"hashed_password\": \"\",\n \"role\": \"viewer\",\n \"created_at\": \"\"\n },\n {\n \"email\": \"\",\n \"username\": \"\",\n \"id\": \"\",\n \"hashed_password\": \"\",\n \"role\": \"viewer\",\n \"created_at\": \"\"\n }\n ],\n \"total\": \"\"\n}" }, { "name": "Validation Error", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/users?sort=asc&sort_by=username&skip=0&limit=10", "host": [ "{{baseUrl}}" ], "path": [ "users" ], "query": [ { "key": "sort", "value": "asc" }, { "key": "sort_by", "value": "username" }, { "key": "skip", "value": "0" }, { "key": "limit", "value": "10" } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n }\n ]\n}" } ] }, { "name": "Login", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" }, { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"username\": \"admin\",\n \"password\": \"admin\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/users/login", "host": [ "{{baseUrl}}" ], "path": [ "users", "login" ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"password\": \"\",\n \"username\": \"\",\n \"email\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/users/login", "host": [ "{{baseUrl}}" ], "path": [ "users", "login" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{}" }, { "name": "Validation Error", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"password\": \"\",\n \"username\": \"\",\n \"email\": \"\"\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "{{baseUrl}}/users/login", "host": [ "{{baseUrl}}" ], "path": [ "users", "login" ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n }\n ]\n}" } ] }, { "name": "Logout", "request": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/users/logout", "host": [ "{{baseUrl}}" ], "path": [ "users", "logout" ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/users/logout", "host": [ "{{baseUrl}}" ], "path": [ "users", "logout" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{}" }, { "name": "Validation Error", "originalRequest": { "method": "POST", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/users/logout", "host": [ "{{baseUrl}}" ], "path": [ "users", "logout" ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n }\n ]\n}" } ] } ] }, { "name": "Get Price History", "request": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/price-history/:product_id?sort=asc&sort_by=date", "host": [ "{{baseUrl}}" ], "path": [ "price-history", ":product_id" ], "query": [ { "key": "sort", "value": "asc" }, { "key": "sort_by", "value": "date" } ], "variable": [ { "key": "product_id", "value": "", "description": "(Required) " } ] } }, "response": [ { "name": "Successful Response", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/price-history/:product_id?sort=asc&sort_by=date", "host": [ "{{baseUrl}}" ], "path": [ "price-history", ":product_id" ], "query": [ { "key": "sort", "value": "asc" }, { "key": "sort_by", "value": "date" } ], "variable": [ { "key": "product_id", "value": "", "description": "(Required) " } ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "[\n {\n \"product_id\": \"\",\n \"price\": \"\",\n \"date\": \"\",\n \"id\": \"\",\n \"reason\": \"\"\n },\n {\n \"product_id\": \"\",\n \"price\": \"\",\n \"date\": \"\",\n \"id\": \"\",\n \"reason\": \"\"\n }\n]" }, { "name": "Validation Error", "originalRequest": { "method": "GET", "header": [ { "key": "Accept", "value": "application/json" } ], "url": { "raw": "{{baseUrl}}/price-history/:product_id?sort=asc&sort_by=date", "host": [ "{{baseUrl}}" ], "path": [ "price-history", ":product_id" ], "query": [ { "key": "sort", "value": "asc" }, { "key": "sort_by", "value": "date" } ], "variable": [ { "key": "product_id", "value": "", "description": "(Required) " } ] } }, "status": "Unprocessable Entity (WebDAV) (RFC 4918)", "code": 422, "_postman_previewlanguage": "json", "header": [ { "key": "Content-Type", "value": "application/json" } ], "cookie": [], "body": "{\n \"detail\": [\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n },\n {\n \"loc\": [\n \"\",\n \"\"\n ],\n \"msg\": \"\",\n \"type\": \"\"\n }\n ]\n}" } ] } ], "variable": [ { "key": "baseUrl", "value": "/", "type": "string" } ] }