{"info":{"_postman_id":"32399a79-5886-4f2b-8234-ba4035e4b4bc","name":"PlanningController","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"18570764","collectionId":"32399a79-5886-4f2b-8234-ba4035e4b4bc","publishedId":"UzBvFNN3","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-06-29T16:47:16.000Z"},"item":[{"name":"get a Planning","id":"dd6761cc-8313-4dff-8404-78a4cd7e9470","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{localUrl}}/api/v1/plannings/<UUID>","description":"<p><strong>Action:</strong> Get a Planning Entity from the repository</p>\n<p><strong>Path required:</strong> UUID as String</p>\n<p><strong>Roles permitted:</strong> USER, ADMIN</p>\n","urlObject":{"path":["api","v1","plannings","<UUID>"],"host":["{{localUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"dd6761cc-8313-4dff-8404-78a4cd7e9470"},{"name":"get all Plannings","id":"eb076e3d-212f-473e-a6c8-b429a25d27fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{localUrl}}/api/v1/plannings/","description":"<p><strong>Action:</strong> Get a list of all Planning Entities from the repository</p>\n<p><strong>Path required:</strong> none</p>\n<p><strong>Roles permitted:</strong> USER, ADMIN</p>\n","urlObject":{"path":["api","v1","plannings",""],"host":["{{localUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"eb076e3d-212f-473e-a6c8-b429a25d27fc"},{"name":"associate Planning","id":"d695df67-c9b1-44b0-a7b2-922c080e1f0a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"personUuid\": \"<uuid>\",\r\n    \"dishUuid\": \"<uuid>\",\r\n    \"restaurantUuid\": \"<uuid>\",\r\n    \"dayOfWeek\": \"<dayOfWeek>\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{localUrl}}/api/v1/plannings/","description":"<p><strong>Action:</strong> Create a new Planning Entity, based on a Form, and store into repository.</p>\n<p><strong>Path required:</strong> none</p>\n<p><strong>Roles permitted:</strong> USER, ADMIN</p>\n<p><strong>Validations processed:</strong></p>\n<ul>\n<li>A Person can have a maximum of 3 meals per dayOfWeek;</li>\n<li>A Restaurant cannot provide more than the maximum number of meals-per-day assigned for it.</li>\n</ul>\n","urlObject":{"path":["api","v1","plannings",""],"host":["{{localUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d695df67-c9b1-44b0-a7b2-922c080e1f0a"},{"name":"disassociate Planning","id":"d6600528-fd22-45ef-93fa-0201c1abe2f2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"personUuid\": \"8bd1b4d8-3abe-4a83-8042-f46db372fcac\",\r\n    \"dishUuid\": \"a3a7b16e-f7ca-469e-a48c-ee601d586651\",\r\n    \"restaurantUuid\": \"010bae5c-0fbb-42cb-97f0-22ac51c099c1\",\r\n    \"dayOfWeek\": \"MONDAY\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{localUrl}}/api/v1/plannings/","description":"<p><strong>Action:</strong> Remove an existing Planning Entity, based on a Form, from repository</p>\n<p><strong>Path required:</strong> none</p>\n<p><strong>Roles permitted:</strong> USER, ADMIN</p>\n","urlObject":{"path":["api","v1","plannings",""],"host":["{{localUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d6600528-fd22-45ef-93fa-0201c1abe2f2"},{"name":"disassociate Planning by UUID","id":"905bf8f4-6635-4127-8a9a-1f0b6d8cfa2b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{localUrl}}/api/v1/plannings/<UUID>","description":"<p><strong>Action:</strong> Remove an existing Planning Entity from repository</p>\n<p><strong>Path required:</strong> UUID as String</p>\n<p><strong>Roles permitted:</strong> USER, ADMIN</p>\n","urlObject":{"path":["api","v1","plannings","<UUID>"],"host":["{{localUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"905bf8f4-6635-4127-8a9a-1f0b6d8cfa2b"},{"name":"getPersonList - Restaurant","id":"51a2241f-d874-4504-925e-043cacfae408","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{localUrl}}/api/v1/plannings/restaurant/<UUID>/<dayOfWeek>/","description":"<p><strong>Action:</strong> get a List of Persons associated with a specific Restaurant and DayOfWeek</p>\n<p><strong>Path required:</strong> UUID of restaurant and DayOfWeek as String</p>\n<p><strong>Roles permitted:</strong> USER, ADMIN</p>\n","urlObject":{"path":["api","v1","plannings","restaurant","<UUID>","<dayOfWeek>",""],"host":["{{localUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"51a2241f-d874-4504-925e-043cacfae408"},{"name":"getPersonList - Dish","id":"719b411a-f082-457f-b38b-8481c486b24b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{localUrl}}/api/v1/plannings/dish/<UUID>/<dayOfWeek>/","description":"<p><strong>Action:</strong> get a List of Persons associated with a specific DIsh and DayOfWeek</p>\n<p><strong>Path required:</strong> UUID of Dish and DayOfWeek as String</p>\n<p><strong>Roles permitted:</strong> USER, ADMIN</p>\n","urlObject":{"path":["api","v1","plannings","dish","<UUID>","<dayOfWeek>",""],"host":["{{localUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"719b411a-f082-457f-b38b-8481c486b24b"},{"name":"getPersonList - NoDish","id":"be152018-0d81-423a-8a32-7f5fbf45bbd9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{localUrl}}/api/v1/plannings/no_dish/<dayOfWeek>/","description":"<p><strong>Action:</strong> get a List of Persons with no Planning for a specific DayOfWeek</p>\n<p><strong>Path required:</strong> DayOfWeek as String</p>\n<p><strong>Roles permitted:</strong> USER, ADMIN</p>\n","urlObject":{"path":["api","v1","plannings","no_dish","<dayOfWeek>",""],"host":["{{localUrl}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"be152018-0d81-423a-8a32-7f5fbf45bbd9"}]}