{"info":{"_postman_id":"21662a4d-ccc6-4cb1-9319-b16440acfde1","name":"Livestock App","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"12400552","collectionId":"21662a4d-ccc6-4cb1-9319-b16440acfde1","publishedId":"2s93RQTu4s","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-03-28T01:49:40.000Z"},"item":[{"name":"Animals","item":[{"name":"Get All Animals","id":"8d48e8d3-1b3c-4527-9bb2-c8a3feb0956c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/v1/animal","urlObject":{"path":["api","v1","animal"],"host":["{{base_url}}"],"query":[{"disabled":true,"key":"pasture","value":"null"}],"variable":[]}},"response":[],"_postman_id":"8d48e8d3-1b3c-4527-9bb2-c8a3feb0956c"},{"name":"Create Animal","id":"82bfe7b4-3bda-49b2-9d80-81e04f9b5d8e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"[{\r\n    \"breed\": \"Gelbvieh\",\r\n    \"color\": \"White Angus\",\r\n    \"initialWeight\": \"132\",\r\n    \"dateOfPurchase\": \"03/25/2022\",\r\n    \"priceRatio\": \"245\"\r\n},\r\n{\r\n    \"breed\": \"Jamaicano\",\r\n    \"color\": \"Angel White\",\r\n    \"initialWeight\": \"149\",\r\n    \"dateOfPurchase\": \"03/25/2022\",\r\n    \"priceRatio\": \"245\"\r\n}]","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/animal","urlObject":{"path":["api","v1","animal"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"82bfe7b4-3bda-49b2-9d80-81e04f9b5d8e"},{"name":"Get One Animal","id":"ce44076b-fcb9-4a16-8e2e-4d03cb5205ba","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/v1/animal/63dac1efa57f869523b93519","urlObject":{"path":["api","v1","animal","63dac1efa57f869523b93519"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ce44076b-fcb9-4a16-8e2e-4d03cb5205ba"},{"name":"Update Animal","id":"ba23babb-a440-4749-8a5b-be2582a655e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"description\": \"jdsjd\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/animal/63d055db9dae94d478b9ee74","urlObject":{"path":["api","v1","animal","63d055db9dae94d478b9ee74"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba23babb-a440-4749-8a5b-be2582a655e1"},{"name":"Delete Animal","id":"1558320b-4ae5-4d72-8ef6-fdc5244a7f5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\r\n    \"color\": \"Black Angus\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/animal/63ca2564ca54a332b2fa6bc4","urlObject":{"path":["api","v1","animal","63ca2564ca54a332b2fa6bc4"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1558320b-4ae5-4d72-8ef6-fdc5244a7f5b"},{"name":"Delete All Animals","id":"61c0c292-4ce6-4ada-88ea-5c4d66ce606f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"urlObject":{"query":[],"variable":[]},"url":""},"response":[],"_postman_id":"61c0c292-4ce6-4ada-88ea-5c4d66ce606f"},{"name":"Animal Stats","id":"2c93a390-4969-4df5-bc29-eebc8285d9ce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"pastureID\": \"63dac3811b3566381db68ac0\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/animal/stats","description":"<p>Request body must contain variables specifically named batchID, pastureID or be empty. When empty, get stats for all animals. Pastures and batches have aditional fields, also have \"Below Average Growth\" data.</p>\n","urlObject":{"path":["api","v1","animal","stats"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"2c93a390-4969-4df5-bc29-eebc8285d9ce"}],"id":"04a02068-00ce-4586-96cd-f41839cc95fa","_postman_id":"04a02068-00ce-4586-96cd-f41839cc95fa","description":""},{"name":"Batch","item":[{"name":"Create Batch","id":"48ab4f89-628a-4e51-a662-adf783132ea4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"date\": \"8/14/2022\",\r\n    \"seller\": \"Fazenda Boa Uniao\",\r\n    \"description\": \"Compra feita com 30 dias de prazo\",\r\n    \"cattle\": [\r\n        \"62f98bee3b4a104c47138814\",\r\n        \"62f98df65bc154fad90d92c7\",\r\n        \"62f98e645bc154fad90d92c9\" \r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"127.0.0.1:8000/api/v1/batch","urlObject":{"port":"8000","path":["api","v1","batch"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"48ab4f89-628a-4e51-a662-adf783132ea4"},{"name":"Get All Batches","id":"027e6310-e8ab-4708-9066-de1a18de7f3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/v1/batch","urlObject":{"path":["api","v1","batch"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"027e6310-e8ab-4708-9066-de1a18de7f3c"},{"name":"Get One Batch","id":"1b5273a7-4bdd-401b-8b2b-df2031d4576d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/v1/batch/id/63d055dc9dae94d478b9ef59","urlObject":{"path":["api","v1","batch","id","63d055dc9dae94d478b9ef59"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"1b5273a7-4bdd-401b-8b2b-df2031d4576d"},{"name":"Update Batch","id":"70a948f5-3c85-49b0-a220-5eae95813508","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"seller\": \"something else\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/batch/63881f00b1620ba24c16fe9b","urlObject":{"path":["api","v1","batch","63881f00b1620ba24c16fe9b"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"70a948f5-3c85-49b0-a220-5eae95813508"},{"name":"Delete Batch","id":"08d19c26-0bb3-47b7-a0e8-edd59d9a11b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{base_url}}/api/v1/batch/id/63ca2f1909ed38d6085d8704","urlObject":{"path":["api","v1","batch","id","63ca2f1909ed38d6085d8704"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"08d19c26-0bb3-47b7-a0e8-edd59d9a11b2"}],"id":"2a40d775-3f68-41cb-883e-fdb70591bb35","_postman_id":"2a40d775-3f68-41cb-883e-fdb70591bb35","description":""},{"name":"Animals/Weight Log","item":[{"name":"Add Weight Log","id":"bca96588-8723-4511-9ce7-8773660b6bd6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"weight\": \"297\",\r\n    \"date\": \"1/19/2023\"\r\n}","options":{"raw":{"language":"json"}}},"url":"127.0.0.1:8000/api/v1/animal/weightLog/63d055db9dae94d478b9ee7a","urlObject":{"port":"8000","path":["api","v1","animal","weightLog","63d055db9dae94d478b9ee7a"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"bca96588-8723-4511-9ce7-8773660b6bd6"},{"name":"Delete Weight Log","id":"233c9459-d5e3-4190-bbfa-5c1bf6ca5dc9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"127.0.0.1:3000/api/v1/animal/weightLog/62f1d765c619ae5c7b090b1c/62f1ddea94305619c929830c","urlObject":{"port":"3000","path":["api","v1","animal","weightLog","62f1d765c619ae5c7b090b1c","62f1ddea94305619c929830c"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"233c9459-d5e3-4190-bbfa-5c1bf6ca5dc9"}],"id":"dd92541c-7beb-4cf3-9439-bdf709748fae","_postman_id":"dd92541c-7beb-4cf3-9439-bdf709748fae","description":""},{"name":"Pasture","item":[{"name":"Create Pasture","id":"00b6e504-4346-4d22-a711-6fb7776ffa4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"condition\": \"good\",\r\n    \"status\": \"occupied\",\r\n    \"area\": 132,\r\n    \"name\": \"Manga da rua\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/pasture","urlObject":{"path":["api","v1","pasture"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"00b6e504-4346-4d22-a711-6fb7776ffa4c"},{"name":"Get All Pastures","id":"8dce11f0-6504-4f91-a5d5-9bb1a46cd5c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/v1/pasture?fields=name,herd","urlObject":{"path":["api","v1","pasture"],"host":["{{base_url}}"],"query":[{"key":"fields","value":"name,herd"}],"variable":[]}},"response":[],"_postman_id":"8dce11f0-6504-4f91-a5d5-9bb1a46cd5c5"},{"name":"Get One Pasture","id":"c86750ca-103c-4265-a894-8b9d144d2130","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"{{base_url}}/api/v1/pasture/63d055db9dae94d478b9ee64","urlObject":{"path":["api","v1","pasture","63d055db9dae94d478b9ee64"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c86750ca-103c-4265-a894-8b9d144d2130"},{"name":"Update Pasture","id":"eedfdc78-69b6-4484-a433-894c905e860d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"herd\": [\r\n        \"639050197ebcfcaf46fb9f6e\",\r\n        \"639050197ebcfcaf46fb9f72\",\r\n        \"639050197ebcfcaf46fb9f70\" \r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/pasture/6307f1f91874ad876d397238","urlObject":{"path":["api","v1","pasture","6307f1f91874ad876d397238"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"eedfdc78-69b6-4484-a433-894c905e860d"},{"name":"Delete Pasture","id":"639dcaf1-dd8f-4cbe-bdae-b328d76589c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"{{URL}}/api/v1/pasture/6307e1932d649700a181aa61","urlObject":{"path":["api","v1","pasture","6307e1932d649700a181aa61"],"host":["{{URL}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"639dcaf1-dd8f-4cbe-bdae-b328d76589c3"}],"id":"a6ea67ca-7e8e-40a5-bfa2-05cc7d6bc4fd","_postman_id":"a6ea67ca-7e8e-40a5-bfa2-05cc7d6bc4fd","description":""},{"name":"Pasture/Animals","item":[{"name":"Remove Animals","id":"901fb6a7-d6b9-43f5-ace8-00ad68223971","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"animals\": [\r\n        \"639050197ebcfcaf46fb9f6e\",\r\n        \"639050197ebcfcaf46fb9f72\"\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/pasture/removeanimals/6307f1f91874ad876d397238","urlObject":{"path":["api","v1","pasture","removeanimals","6307f1f91874ad876d397238"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"901fb6a7-d6b9-43f5-ace8-00ad68223971"},{"name":"Move Animals","id":"3816f8c0-6437-418c-8165-99c4ad82b710","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"animals\": [\r\n        \"639050197ebcfcaf46fb9f6e\",\r\n        \"639050197ebcfcaf46fb9f72\"\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/pasture/moveanimals/6307f1f91874ad876d397238/639674cd5276f7bc74501798","urlObject":{"path":["api","v1","pasture","moveanimals","6307f1f91874ad876d397238","639674cd5276f7bc74501798"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"3816f8c0-6437-418c-8165-99c4ad82b710"},{"name":"Add Animals to Pasture","id":"9a69da06-abaf-4e8b-bc0b-baef5b2292a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"animals\": [\r\n        \"638816b3b1620ba24c16fe1f\",\r\n        \"63881929b1620ba24c16fe73\"\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/pasture/addanimalstopasture/6307f1f91874ad876d397238","urlObject":{"path":["api","v1","pasture","addanimalstopasture","6307f1f91874ad876d397238"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"9a69da06-abaf-4e8b-bc0b-baef5b2292a4"}],"id":"dede886a-3ed6-4cc6-b328-3b256de797c9","_postman_id":"dede886a-3ed6-4cc6-b328-3b256de797c9","description":""},{"name":"Batch/Animals","item":[{"name":"Create batch with animals","id":"483e1c2a-84a1-4446-b02f-101518e791fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \r\n}","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/api/v1/batch/createBatchWithAnimals","urlObject":{"path":["api","v1","batch","createBatchWithAnimals"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"483e1c2a-84a1-4446-b02f-101518e791fd"}],"id":"6ce569a4-e2f7-4c19-a299-8d08acffb71e","_postman_id":"6ce569a4-e2f7-4c19-a299-8d08acffb71e","description":""}]}