{"info":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","description":"<html><head></head><body><p>This collection are the routes to access the foodExplorer backend's API.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"37660327","collectionId":"843b45c4-d2d7-4d93-98f4-1707395cde93","publishedId":"2sAY4rGRZG","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"0D161B","highlight":"065E7C"},"publishDate":"2024-10-24T15:08:15.000Z"},"item":[{"name":"Sessions","item":[{"name":"create","event":[{"listen":"test","script":{"id":"306c2b41-023c-4d8b-9cc7-87fd22608494","exec":["// Parse the response body as JSON","const responseData = pm.response.json();","","// Check if the response contains a \"token\" property","if (responseData && responseData.token) {","    // Store the token value in the \"userToken\" environment variable","    pm.environment.set(\"userToken\", responseData.token);","} else {","    console.log(\"No token found in the response.\");","}",""],"type":"text/javascript","packages":{}}}],"id":"a150f499-2f44-4e63-babd-9f1a00a4a743","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"insomnia/9.3.3"}],"body":{"mode":"raw","raw":"{\n    \"email\": \"teste_admin@teste.com\",\n    \"password\": \"teste_admin\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/sessions","description":"<h3 id=\"post-sessions\">POST /sessions</h3>\n<p>This endpoint is used to create a new session by authenticating the user with their email and password.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>email (text, required): The email of the user.</p>\n</li>\n<li><p>password (text, required): The password of the user.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is in XML format with a status code of 200. The response body is not available.</p>\n<h4 id=\"json-schema\">JSON Schema</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"responseProperty1\": {\n      \"type\": \"string\"\n    },\n    \"responseProperty2\": {\n      \"type\": \"integer\"\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["sessions"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"a9978af4-e72f-4484-a944-8b550b776c32","name":"successfully / 200","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"insomnia/9.3.3"}],"url":"{{baseURL1}}/sessions"},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"448"},{"key":"ETag","value":"W/\"1c0-zXWADGcnazfGSnOpRActh2GYIa0\""},{"key":"Date","value":"Tue, 13 Aug 2024 14:17:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"application/json; charset=utf-8 content type is not supported in the response body"}],"_postman_id":"a150f499-2f44-4e63-babd-9f1a00a4a743"}],"id":"369b52e7-f701-4a40-a031-6de277752273","description":"<p>This is the route to create a session (login)</p>\n","_postman_id":"369b52e7-f701-4a40-a031-6de277752273","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}}},{"name":"Users","item":[{"name":"show","id":"684cf365-191a-47f8-9136-13a9adc958d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"User-Agent","value":"insomnia/9.2.0"}],"url":"{{baseURL}}/users/5","description":"<h1 id=\"get-user-details\">Get User Details</h1>\n<p>This endpoint retrieves the details of a specific user with the provided user ID.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"request-url\">Request URL</h3>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>{{baseURL}}/users/1</code></p>\n</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<p>Upon a successful request, the server will respond with the following details of the user:</p>\n<ul>\n<li><p><code>id</code>: The unique identifier of the user.</p>\n</li>\n<li><p><code>name</code>: The name of the user.</p>\n</li>\n<li><p><code>email</code>: The email address of the user.</p>\n</li>\n<li><p><code>createdAt</code>: The date and time when the user account was created.</p>\n</li>\n</ul>\n<p>If the user ID is not found, the server will respond with a 404 Not Found error.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["users","5"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"0b5e4027-834d-4c38-bd0a-ad49dd448731","name":"successfully / 200","originalRequest":{"method":"GET","header":[{"key":"User-Agent","value":"insomnia/9.2.0"}],"url":"{{baseURL1}}/users/2"},"status":"OK","code":200,"_postman_previewlanguage":"text","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"136"},{"key":"ETag","value":"W/\"88-X/yCF9jjoHL5gQrH7UKcYzpt/ZU\""},{"key":"Date","value":"Tue, 13 Aug 2024 13:49:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"application/json; charset=utf-8 content type is not supported in the response body"}],"_postman_id":"684cf365-191a-47f8-9136-13a9adc958d3"},{"name":"create","id":"14576428-43c0-44bf-b648-94ab499e5acb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"insomnia/9.2.0"}],"body":{"mode":"raw","raw":"{\n    \"name\": \"teste_admin\",\n    \"email\": \"teste_admin@teste.com\",\n    \"password\": \"teste_admin\",\n    \"isAdmin\": true\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/users","description":"<p>This endpoint allows you to create a new user by sending a POST request to the specified URL. The request should include a JSON payload in the raw request body type with the following parameters:</p>\n<ul>\n<li><p><code>name</code>: The name of the user.</p>\n</li>\n<li><p><code>email</code>: The email address of the user.</p>\n</li>\n<li><p><code>password</code>: The password for the user account.</p>\n</li>\n<li><p><code>isAdmin</code>: A boolean value indicating whether the user is an admin or not.</p>\n</li>\n</ul>\n<p>Upon successful creation, the response will include the details of the newly created user.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["users"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"b37b3415-9115-4c9d-acd0-7b87de78c3dc","name":" / 500","originalRequest":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"insomnia/9.2.0"}],"url":"{{baseURL1}}/users"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"text","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"52"},{"key":"ETag","value":"W/\"34-Beo0uDQ1v/QUMc10iip0z2Tp9uQ\""},{"key":"Date","value":"Tue, 13 Aug 2024 14:04:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"application/json; charset=utf-8 content type is not supported in the response body"}],"_postman_id":"14576428-43c0-44bf-b648-94ab499e5acb"},{"name":"update","id":"b979eca2-9e3e-4a2b-9f64-49f4970f8a58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":false},"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"insomnia/9.2.0"},{"key":"Authorization","value":"Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzIzNTU4Njc5LCJleHAiOjE3MjM1NjIyNzl9.QKEbdNhFl5Sc1Apr6JsjNv_TexQfatFYKMHmaDgb6hS3DcaRIubbWcpQmvwuiSOBMJdZNlXm9wfoQfdu1NK7hOJhpo8bMydLBMCq9uILdMMMnVleZUwjJxkN15FxHQ0xwyWb2py5zLzd-lBjC3atgbH-w3z51covynY77QGg6QvT5bCZW_mrlBGAYAzNhTnoucPEDJKd6sEQKD3sqW_L6j0ZhipM6WlGjhD-riI1oJrwAId6gCnCQl0pjuohTMvMuIKt4zl_4q9GOpbX_Uaiofd1kElFFXsgUJ6NQmSVR5clhB1Ck_oyw2UN_hp494B4v1psqIWja_PhAplnR29pqA"}],"body":{"mode":"raw","raw":"{\n\t\"password\": \"hello\",\n\t\"old_password\": \"Av*1264\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/users","description":"<h3 id=\"update-user-information\">Update User Information</h3>\n<p>This endpoint is used to update user information.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>password</code>: The new password for the user. <em>(string)</em></p>\n</li>\n<li><p><code>old_password</code>: The old password for verification. <em>(string)</em></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will contain the updated user information.</p>\n","urlObject":{"path":["users"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"b8aaa1f4-6fb6-4a67-ac64-dd25d2398f6f","name":" / 500","originalRequest":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"User-Agent","value":"insomnia/9.2.0"},{"key":"Authorization","value":"Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzIzNTU4Njc5LCJleHAiOjE3MjM1NjIyNzl9.QKEbdNhFl5Sc1Apr6JsjNv_TexQfatFYKMHmaDgb6hS3DcaRIubbWcpQmvwuiSOBMJdZNlXm9wfoQfdu1NK7hOJhpo8bMydLBMCq9uILdMMMnVleZUwjJxkN15FxHQ0xwyWb2py5zLzd-lBjC3atgbH-w3z51covynY77QGg6QvT5bCZW_mrlBGAYAzNhTnoucPEDJKd6sEQKD3sqW_L6j0ZhipM6WlGjhD-riI1oJrwAId6gCnCQl0pjuohTMvMuIKt4zl_4q9GOpbX_Uaiofd1kElFFXsgUJ6NQmSVR5clhB1Ck_oyw2UN_hp494B4v1psqIWja_PhAplnR29pqA"}],"url":"{{baseURL1}}/users"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"text","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"52"},{"key":"ETag","value":"W/\"34-Beo0uDQ1v/QUMc10iip0z2Tp9uQ\""},{"key":"Date","value":"Tue, 13 Aug 2024 14:13:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"application/json; charset=utf-8 content type is not supported in the response body"}],"_postman_id":"b979eca2-9e3e-4a2b-9f64-49f4970f8a58"}],"id":"7abf83cd-0c2e-4dc1-97b0-1ce00129145f","_postman_id":"7abf83cd-0c2e-4dc1-97b0-1ce00129145f","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}}},{"name":"Ingredients","item":[{"name":"index","id":"17dca2c9-048c-418e-83b7-4b9300f7efdd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseURL}}/ingredients","description":"<p>This endpoint makes an HTTP GET request to retrieve a list of ingredients from the server.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response of this request is a JSON object representing the list of ingredients. You can use the following JSON schema to understand the structure of the response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"array\",\n  \"items\": {\n    \"type\": \"object\",\n    \"properties\": {\n      \"ingredientId\": {\n        \"type\": \"string\"\n      },\n      \"name\": {\n        \"type\": \"string\"\n      },\n      \"category\": {\n        \"type\": \"string\"\n      },\n      \"quantity\": {\n        \"type\": \"number\"\n      }\n      // Add more properties as per the actual response\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["ingredients"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"17dca2c9-048c-418e-83b7-4b9300f7efdd"},{"name":"show","id":"34dcd687-9fc0-4070-b837-2b265d93eab3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseURL}}/ingredients/1","description":"<h1 id=\"get-ingredient-details\">Get Ingredient Details</h1>\n<p>This endpoint retrieves the details of a specific ingredient.</p>\n<h2 id=\"request\">Request</h2>\n<h3 id=\"path-parameters\">Path Parameters</h3>\n<ul>\n<li><code>1</code> (number) - The ID of the ingredient to retrieve.</li>\n</ul>\n<h2 id=\"response\">Response</h2>\n<p>Upon a successful request, the server will respond with the following details of the ingredient:</p>\n<ul>\n<li><p><code>id</code> (number) - The unique identifier of the ingredient.</p>\n</li>\n<li><p><code>name</code> (string) - The name of the ingredient.</p>\n</li>\n<li><p><code>category</code> (string) - The category to which the ingredient belongs.</p>\n</li>\n<li><p><code>quantity</code> (number) - The quantity of the ingredient available.</p>\n</li>\n</ul>\n<p>If the ingredient with the specified ID is not found, the server will respond with an appropriate error message.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["ingredients","1"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"34dcd687-9fc0-4070-b837-2b265d93eab3"},{"name":"create","id":"b5abf9ce-2179-4d65-8339-5acbfddd8770","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"names\": [\"Cebola Caramelizada\"]\n}\n// {\n//   \"names\": [\n//     \"Banana\",\n//     \"Canela\",\n//     \"Farinha\",\n//     \"Açúcar\",\n//     \"Ovo\",\n//     \"Leite\",\n//     \"Fermento\",\n//     \"Chocolate\",\n//     \"Manteiga\",\n//     \"Morango\"\n//   ]\n// }\n","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/ingredients","description":"<h3 id=\"add-ingredient\">Add Ingredient</h3>\n<p>This endpoint allows you to add new ingredients to the system.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><code>names</code> (array of strings) - The names of the ingredients to be added.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will contain the status of the request, along with any relevant information about the added ingredients.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["ingredients"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b5abf9ce-2179-4d65-8339-5acbfddd8770"},{"name":"update","id":"b9bb7eb8-449d-43db-aad6-c9fa89c72299","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Abacate\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/ingredients/1","description":"<h3 id=\"update-ingredient\">Update Ingredient</h3>\n<p>This endpoint is used to update a specific ingredient by its ID.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li>name (string, required): The updated name of the ingredient.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request is a JSON object following the schema below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"id\": {\n      \"type\": \"integer\"\n    },\n    \"name\": {\n      \"type\": \"string\"\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["ingredients","1"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b9bb7eb8-449d-43db-aad6-c9fa89c72299"},{"name":"delete","id":"8933f9df-aad8-413e-b44e-3945e7f1ab35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{baseURL}}/ingredients/1","description":"<h3 id=\"delete-ingredient\">Delete Ingredient</h3>\n<p>This endpoint is used to delete a specific ingredient.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: DELETE</p>\n</li>\n<li><p>URL: <code>{{baseURL}}/ingredients/1</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response for this request follows the JSON schema below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"message\": {\n      \"type\": \"string\"\n    }\n  }\n}\n\n</code></pre>\n<p>The response body contains a <code>message</code> property indicating the status of the deletion operation.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["ingredients","1"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8933f9df-aad8-413e-b44e-3945e7f1ab35"}],"id":"076fc77d-70ae-4e64-b4dd-7678be574150","_postman_id":"076fc77d-70ae-4e64-b4dd-7678be574150","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}}},{"name":"Dishes","item":[{"name":"index","id":"26b2d33e-ce0e-4468-bce4-91987da8b9c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseURL}}/dishes","description":"<p>The endpoint retrieves a list of dishes.</p>\n<p>The response of the request can be documented as a JSON schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"array\",\n    \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n            \"id\": {\n                \"type\": \"integer\"\n            },\n            \"name\": {\n                \"type\": \"string\"\n            },\n            \"description\": {\n                \"type\": \"string\"\n            },\n            \"price\": {\n                \"type\": \"number\"\n            },\n            \"category_id\": {\n                \"type\": \"integer\"\n            },\n            \"image\": {\n                \"type\": \"string\"\n            },\n            \"created_at\": {\n                \"type\": \"string\"\n            },\n            \"updated_at\": {\n                \"type\": \"string\"\n            },\n            \"category_name\": {\n                \"type\": \"string\"\n            },\n            \"ingredients\": {\n                \"type\": \"array\",\n                \"items\": {\n                    \"type\": \"string\"\n                }\n            }\n        }\n    }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["dishes"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"26b2d33e-ce0e-4468-bce4-91987da8b9c4"},{"name":"show","id":"a26fa1b2-7766-48bc-9d14-cd7ec53b1421","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseURL}}/dishes/12","description":"<h3 id=\"get-dish-details\">Get Dish Details</h3>\n<p>This endpoint retrieves details of a specific dish based on the provided dish ID.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>{{baseURL}}/dishes/1</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"id\": {\n      \"type\": \"integer\"\n    },\n    \"name\": {\n      \"type\": \"string\"\n    },\n    \"description\": {\n      \"type\": \"string\"\n    },\n    \"price\": {\n      \"type\": \"number\"\n    },\n    \"category_id\": {\n      \"type\": \"integer\"\n    },\n    \"image\": {\n      \"type\": \"string\"\n    },\n    \"created_at\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"updated_at\": {\n      \"type\": \"string\",\n      \"format\": \"date-time\"\n    },\n    \"category_name\": {\n      \"type\": \"string\"\n    },\n    \"ingredients\": {\n      \"type\": \"array\",\n      \"items\": {\n        \"type\": \"string\"\n      }\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["dishes","12"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"a26fa1b2-7766-48bc-9d14-cd7ec53b1421"},{"name":"create","id":"6ec68f6b-7957-486c-a286-2a38e648dd93","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Torta de Limão\",\n    \"description\": \"Torta de limão com merengue e base crocante\",\n    \"price\": 10.0,\n    \"category_id\": 4,  // Sobremesas\n    \"ingredients_id\": [3, 4, 5, 9]  // Farinha, Açúcar, Ovo, Manteiga\n  }","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/dishes","description":"<h3 id=\"add-new-dish\">Add New Dish</h3>\n<p>This endpoint allows the client to add a new dish to the database.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>name</code> (string, required): The name of the dish.</p>\n</li>\n<li><p><code>description</code> (string, required): A brief description of the dish.</p>\n</li>\n<li><p><code>price</code> (number, required): The price of the dish.</p>\n</li>\n<li><p><code>category_id</code> (number, required): The ID of the category to which the dish belongs.</p>\n</li>\n<li><p><code>ingredients_id</code> (array of numbers, required): An array of ingredient IDs used in the dish.</p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response of this request is a JSON object conforming to the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"type\": \"object\",\n  \"properties\": {\n    \"status\": {\n      \"type\": \"string\"\n    },\n    \"message\": {\n      \"type\": \"string\"\n    },\n    \"data\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"id\": {\n          \"type\": \"number\"\n        },\n        \"name\": {\n          \"type\": \"string\"\n        },\n        \"description\": {\n          \"type\": \"string\"\n        },\n        \"price\": {\n          \"type\": \"number\"\n        },\n        \"category_id\": {\n          \"type\": \"number\"\n        },\n        \"ingredients_id\": {\n          \"type\": \"array\",\n          \"items\": {\n            \"type\": \"number\"\n          }\n        }\n      }\n    }\n  }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["dishes"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6ec68f6b-7957-486c-a286-2a38e648dd93"},{"name":"updateImg","id":"914651a8-d99d-4add-993a-a4ed114f5c00","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Content-Type","value":"multipart/form-data"},{"key":"User-Agent","value":"insomnia/9.2.0"},{"key":"Authorization","value":"Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzIzNTU4Njc5LCJleHAiOjE3MjM1NjIyNzl9.QKEbdNhFl5Sc1Apr6JsjNv_TexQfatFYKMHmaDgb6hS3DcaRIubbWcpQmvwuiSOBMJdZNlXm9wfoQfdu1NK7hOJhpo8bMydLBMCq9uILdMMMnVleZUwjJxkN15FxHQ0xwyWb2py5zLzd-lBjC3atgbH-w3z51covynY77QGg6QvT5bCZW_mrlBGAYAzNhTnoucPEDJKd6sEQKD3sqW_L6j0ZhipM6WlGjhD-riI1oJrwAId6gCnCQl0pjuohTMvMuIKt4zl_4q9GOpbX_Uaiofd1kElFFXsgUJ6NQmSVR5clhB1Ck_oyw2UN_hp494B4v1psqIWja_PhAplnR29pqA"}],"body":{"mode":"formdata","formdata":[{"key":"img","type":"file","src":"postman-cloud:///1ef75d9a-6112-4830-8e26-a9164076d4bd"}]},"url":"{{baseURL}}/dishes/img/1","description":"<h3 id=\"update-dish-image\">Update Dish Image</h3>\n<p>This endpoint is used to update the image of a specific dish.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p>Form-Data</p>\n<ul>\n<li><strong>file</strong>: The image file to be uploaded.</li>\n</ul>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response of this request is a JSON schema.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["dishes","img","1"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[{"id":"e6ced319-2d71-4dad-bc1d-ed3ffb697208","name":"no response code found","originalRequest":{"method":"PATCH","header":[{"key":"Content-Type","value":"multipart/form-data"},{"key":"User-Agent","value":"insomnia/9.2.0"},{"key":"Authorization","value":"Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNzIzNTU4Njc5LCJleHAiOjE3MjM1NjIyNzl9.QKEbdNhFl5Sc1Apr6JsjNv_TexQfatFYKMHmaDgb6hS3DcaRIubbWcpQmvwuiSOBMJdZNlXm9wfoQfdu1NK7hOJhpo8bMydLBMCq9uILdMMMnVleZUwjJxkN15FxHQ0xwyWb2py5zLzd-lBjC3atgbH-w3z51covynY77QGg6QvT5bCZW_mrlBGAYAzNhTnoucPEDJKd6sEQKD3sqW_L6j0ZhipM6WlGjhD-riI1oJrwAId6gCnCQl0pjuohTMvMuIKt4zl_4q9GOpbX_Uaiofd1kElFFXsgUJ6NQmSVR5clhB1Ck_oyw2UN_hp494B4v1psqIWja_PhAplnR29pqA"}],"url":"{{baseURL1}}/users/avatar"},"_postman_previewlanguage":"Text","header":[],"cookie":[],"responseTime":null,"body":""}],"_postman_id":"914651a8-d99d-4add-993a-a4ed114f5c00"},{"name":"update","id":"b79be03d-640e-4ea0-a21d-362f62690089","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Abacate\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/dishes/1","description":"<p>This endpoint allows updating a specific dish by sending an HTTP PUT request to {{baseURL}}/dishes/1. The request should include a JSON payload in the raw request body type with the updated \"name\" attribute.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<ul>\n<li>name (string, required): The updated name of the dish.</li>\n</ul>\n<h3 id=\"response\">Response</h3>\n<p>The response will include the status code.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["dishes","1"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b79be03d-640e-4ea0-a21d-362f62690089"},{"name":"delete","id":"2016bd97-68f4-4659-a19f-0949229ee09e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{baseURL}}/dishes/4","description":"<p>This endpoint sends an HTTP DELETE request to delete the dish with the ID of 4.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response of this request is the corresponding status code.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["dishes","4"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2016bd97-68f4-4659-a19f-0949229ee09e"}],"id":"53c1d52d-5b21-4945-b433-2233228733a9","_postman_id":"53c1d52d-5b21-4945-b433-2233228733a9","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}}},{"name":"Categories","item":[{"name":"index","id":"e9ba7d02-1993-4373-9ff3-3ff2f4742e2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseURL}}/categories","description":"<h3 id=\"get-categories\">Get Categories</h3>\n<p>This endpoint makes an HTTP GET request to retrieve a list of categories.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<p>This request does not require a request body.</p>\n<h4 id=\"response-body\">Response Body</h4>\n<p>The response will be in JSON format and will contain an array of category objects. Each category object will have the following keys:</p>\n<ul>\n<li><p><code>id</code> (number): The unique identifier for the category.</p>\n</li>\n<li><p><code>name</code> (string): The name of the category.</p>\n</li>\n<li><p><code>created_at</code> (string): The timestamp when the category was created.</p>\n</li>\n<li><p><code>updated_at</code> (string): The timestamp when the category was last updated.</p>\n</li>\n</ul>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"id\": 0,\n        \"name\": \"\",\n        \"created_at\": \"\",\n        \"updated_at\": null\n    }\n]\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["categories"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"e9ba7d02-1993-4373-9ff3-3ff2f4742e2b"},{"name":"show","id":"2730e543-4dd2-4bc5-b8a2-1569cc76217e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseURL}}/categories/1","description":"<h3 id=\"retrieve-category-by-id\">Retrieve Category by ID</h3>\n<p>This endpoint retrieves a specific category by its ID.</p>\n<h4 id=\"request\">Request</h4>\n<ul>\n<li><p>Method: GET</p>\n</li>\n<li><p>URL: <code>{{baseURL}}/categories/1</code></p>\n</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON object with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"id\": {\n            \"type\": \"number\"\n        },\n        \"name\": {\n            \"type\": \"string\"\n        },\n        \"created_at\": {\n            \"type\": \"string\"\n        },\n        \"updated_at\": {\n            \"type\": [\"string\", \"null\"]\n        }\n    }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["categories","1"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2730e543-4dd2-4bc5-b8a2-1569cc76217e"},{"name":"create","id":"8faea7df-62f3-4537-a07d-faa71ab0f6be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"names\": [\n    \"Entradas\",\n    \"Pratos Principais\",\n    \"Saladas\",\n    \"Sobremesas\",\n    \"Bebidas\"\n  ]\n}\n","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/categories","description":"<p>This endpoint allows you to create new categories by making an HTTP POST request to {{baseURL}}/categories.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<p>The request should include a raw JSON body with a \"names\" key, which is an array of category names to be created.</p>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"names\": [\"Entradas\"]\n}\n### Response\n- Status: 400\n- Content-Type: application/json\nThe response will include a JSON object with a \"status\" key indicating the status of the request, and a \"message\" key providing additional information about the error.\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["categories"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"8faea7df-62f3-4537-a07d-faa71ab0f6be"},{"name":"update","id":"daa04be4-b3ca-4f17-8ac9-26832df54efe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Abacate\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/categories/1","description":"<p>This endpoint allows you to update the category with the ID of 1. The request should include a JSON payload with the updated category name.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response of this request is a JSON schema representing the updated category object.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["categories","1"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"daa04be4-b3ca-4f17-8ac9-26832df54efe"},{"name":"delete","id":"f0e0c6c2-6920-47b9-8f85-d3685eafb77e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{baseURL}}/categories/1","description":"<p>This endpoint allows the deletion of a specific category with the ID of 1.</p>\n<h3 id=\"request-body\">Request Body</h3>\n<p>This request does not require a request body.</p>\n<h3 id=\"response\">Response</h3>\n<ul>\n<li><p>Status: 400</p>\n</li>\n<li><p>Content-Type: application/json</p>\n</li>\n</ul>\n<p>The response will include a JSON object with the following properties:</p>\n<ul>\n<li><p>status (string): The status of the response.</p>\n</li>\n<li><p>message (string): A message providing further details about the response.</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["categories","1"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f0e0c6c2-6920-47b9-8f85-d3685eafb77e"}],"id":"d7f96558-7f54-425a-9875-43e6f02d5d47","_postman_id":"d7f96558-7f54-425a-9875-43e6f02d5d47","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}}},{"name":"Favourites","item":[{"name":"index","id":"0b0e4583-b315-44ce-af0e-1060b927071f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseURL}}/categories","description":"<h3 id=\"get-favourites\">GET /favourites</h3>\n<p>This endpoint retrieves a list of favorite items.</p>\n<h4 id=\"request\">Request</h4>\n<p>No request body is required for this endpoint.</p>\n<h4 id=\"response\">Response</h4>\n<p>The response will be a JSON array containing favorite items. Each item in the array will have the following properties:</p>\n<ul>\n<li><p><code>category</code> (string): The category of the favorite item.</p>\n</li>\n<li><p><code>id</code> (number): The unique identifier of the favorite item.</p>\n</li>\n<li><p><code>name</code> (string): The name of the favorite item.</p>\n</li>\n<li><p><code>image</code> (string): The URL of the image associated with the favorite item.</p>\n</li>\n<li><p><code>favouriteCount</code> (number): The count of how many times the item has been favorited.</p>\n</li>\n</ul>\n<p>Example response:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">[\n    {\n        \"category\": \"\",\n        \"id\": 0,\n        \"name\": \"\",\n        \"image\": \"\",\n        \"favouriteCount\": 0\n    }\n]\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["categories"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"0b0e4583-b315-44ce-af0e-1060b927071f"},{"name":"create","id":"b5927b90-2778-407d-ad7d-5615cdb16fbf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/favourites/1","description":"<p>The API endpoint makes an HTTP POST request to {{baseURL}}/favourites/1 to perform an action related to favorites.</p>\n<h3 id=\"response\">Response</h3>\n<p>The response returned has a status code of 400 and a content type of application/json. The response body follows the JSON schema below:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"status\": {\n            \"type\": \"string\"\n        },\n        \"message\": {\n            \"type\": \"string\"\n        }\n    },\n    \"required\": [\"status\", \"message\"]\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["favourites","1"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"b5927b90-2778-407d-ad7d-5615cdb16fbf"},{"name":"delete","id":"ca976b74-1d8c-4385-a3ed-0ec59cc1c72d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{baseURL}}/categories/1","description":"<h3 id=\"delete-favorite\">Delete Favorite</h3>\n<p>This endpoint is used to delete a specific favorite item.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<p>This request does not require a request body.</p>\n<h4 id=\"response\">Response</h4>\n<ul>\n<li><p>Status: 204</p>\n</li>\n<li><p>Content-Type: text/xml</p>\n</li>\n</ul>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["categories","1"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ca976b74-1d8c-4385-a3ed-0ec59cc1c72d"}],"id":"bb512a11-3ab0-4e04-82fd-5167dd91fd0c","_postman_id":"bb512a11-3ab0-4e04-82fd-5167dd91fd0c","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}}},{"name":"Orders","item":[{"name":"index","id":"260481a9-3a94-4242-b0c4-ca4849f2afd3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseURL}}/orders","description":"<p>The endpoint retrieves a list of orders.</p>\n<p>The response of this request can be documented as a JSON schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"array\",\n    \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n            \"id\": {\"type\": \"integer\"},\n            \"user_id\": {\"type\": \"integer\"},\n            \"status\": {\"type\": \"string\"},\n            \"total_price\": {\"type\": \"number\"},\n            \"payment_method\": {\"type\": \"string\"},\n            \"created_at\": {\"type\": \"string\"},\n            \"updated_at\": {\"type\": [\"string\", \"null\"]},\n            \"name\": {\"type\": \"string\"},\n            \"price\": {\"type\": \"number\"},\n            \"quantity\": {\"type\": \"integer\"},\n            \"dishes\": {\n                \"type\": \"array\",\n                \"items\": {\n                    \"type\": \"object\",\n                    \"properties\": {\n                        \"name\": {\"type\": \"string\"},\n                        \"price\": {\"type\": \"number\"},\n                        \"quantity\": {\"type\": \"integer\"}\n                    }\n                }\n            }\n        }\n    }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["orders"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"260481a9-3a94-4242-b0c4-ca4849f2afd3"},{"name":"show","id":"f9c4e764-3f20-40cc-8f70-caf61aae5d3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseURL}}/orders/1","description":"<p>The endpoint retrieves the details of a specific order with the ID \"1\".</p>\n<h3 id=\"response\">Response</h3>\n<p>The response will be in JSON format and will have the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"type\": \"object\",\n    \"properties\": {\n        \"id\": {\n            \"type\": \"integer\"\n        },\n        \"user_id\": {\n            \"type\": \"integer\"\n        },\n        \"status\": {\n            \"type\": \"string\"\n        },\n        \"total_price\": {\n            \"type\": \"number\"\n        },\n        \"payment_method\": {\n            \"type\": \"string\"\n        },\n        \"created_at\": {\n            \"type\": \"string\",\n            \"format\": \"date-time\"\n        },\n        \"updated_at\": {\n            \"type\": [\"string\", \"null\"],\n            \"format\": \"date-time\"\n        },\n        \"dishes\": {\n            \"type\": \"array\",\n            \"items\": {\n                \"type\": \"object\",\n                \"properties\": {\n                    \"name\": {\n                        \"type\": \"string\"\n                    },\n                    \"price\": {\n                        \"type\": \"number\"\n                    },\n                    \"quantity\": {\n                        \"type\": \"integer\"\n                    }\n                }\n            }\n        }\n    }\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["orders","1"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"f9c4e764-3f20-40cc-8f70-caf61aae5d3c"},{"name":"create","id":"adfa6f9c-65c9-4f53-872c-642ba4071317","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"total_price\": 45.90,\n    \"payment_method\": \"credit_card\",\n    \"dishes\": [{\"id\": 1, \"qty\": 3}, {\"id\": 2, \"qty\": 1}]\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/orders","description":"<h3 id=\"add-order\">Add Order</h3>\n<p>This endpoint allows the client to place a new order by sending a POST request to the specified URL.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><p><code>total_price</code> (number): The total price of the order.</p>\n</li>\n<li><p><code>payment_method</code> (string): The payment method chosen by the client.</p>\n</li>\n<li><p><code>dishes</code> (array): An array of objects containing the ID and quantity of each dish included in the order.</p>\n</li>\n</ul>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"total_price\": 45.9,\n  \"payment_method\": \"credit_card\",\n  \"dishes\": [\n    {\n      \"id\": 1,\n      \"qty\": 3\n    }\n  ]\n}\n\n</code></pre>\n<h4 id=\"response\">Response</h4>\n<p>The response will include the details of the newly created order.</p>\n<p>Example:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"order_id\": \"12345\",\n  \"total_price\": 45.9,\n  \"payment_method\": \"credit_card\",\n  \"dishes\": [\n    {\n      \"id\": 1,\n      \"name\": \"Dish 1\",\n      \"qty\": 3\n    }\n  ],\n  \"timestamp\": \"2022-01-01T12:00:00Z\"\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["orders"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"adfa6f9c-65c9-4f53-872c-642ba4071317"},{"name":"update","id":"716043e9-bdd3-496f-ad55-0abe8f5785e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\": \"Abacate\"\n}","options":{"raw":{"language":"json"}}},"url":"{{baseURL}}/orders/1","description":"<h3 id=\"update-order-details\">Update Order Details</h3>\n<p>This endpoint is used to update the details of a specific order.</p>\n<h4 id=\"request-body\">Request Body</h4>\n<ul>\n<li><strong>name</strong> (string, required): The new name for the order.</li>\n</ul>\n<h4 id=\"response\">Response</h4>\n<p>The response will include the updated details of the order.</p>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["orders","1"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"716043e9-bdd3-496f-ad55-0abe8f5785e2"}],"id":"8b2b560d-26fc-4b01-b4a6-13d4271044a0","_postman_id":"8b2b560d-26fc-4b01-b4a6-13d4271044a0","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}}},{"name":"Search","item":[{"name":"search","id":"3dcf342a-b9cf-4d9f-a28a-61aa87682a5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{baseURL}}/search/Banana","description":"<h3 id=\"search-for-banana\">Search for Banana</h3>\n<p>This endpoint makes an HTTP GET request to search for dishes related to \"Banana\".</p>\n<h4 id=\"request-body\">Request Body</h4>\n<p>This request does not require a request body.</p>\n<h4 id=\"response-body\">Response Body</h4>\n<p>The response will be in JSON format with the following schema:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"dishes\": [\n        {\n            \"id\": \"number\",\n            \"name\": \"string\",\n            \"description\": \"string\",\n            \"price\": \"number\",\n            \"category_id\": \"number\",\n            \"image\": \"string|null\",\n            \"created_at\": \"string\",\n            \"updated_at\": \"string|null\"\n        }\n    ]\n}\n\n</code></pre>\n","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}},"urlObject":{"path":["search","Banana"],"host":["{{baseURL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3dcf342a-b9cf-4d9f-a28a-61aa87682a5c"}],"id":"a0f876ce-5212-4bf5-adfa-f114225a744c","_postman_id":"a0f876ce-5212-4bf5-adfa-f114225a744c","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]},"isInherited":true,"source":{"_postman_id":"843b45c4-d2d7-4d93-98f4-1707395cde93","id":"843b45c4-d2d7-4d93-98f4-1707395cde93","name":"foodExplorer","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"{{userToken}}"}]}},"event":[{"listen":"prerequest","script":{"id":"b4cb2749-0062-4f09-aff0-1aab0b662f48","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"445fa874-088f-4258-9eef-2bca4846ec93","type":"text/javascript","packages":{},"exec":[""]}}]}