{"info":{"_postman_id":"2e9ea45a-ff62-48f0-bb5a-e576b3d8a58e","name":"FieldGuardian","description":"<html><head></head><body><p>The <strong>FieldGuardian</strong> Postman documentation provides a comprehensive guide to the RESTful API endpoints available in the <strong>FieldGuardian</strong> application. This documentation is designed to assist developers in understanding and utilizing the various endpoints for managing agricultural data, including vehicles, staff, fields, equipment, crops, monitoring logs, authentication, user management, and dashboard analytics. Each section contains detailed information about the available endpoints, including request and response formats, parameters, and example usage.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"36681432","collectionId":"2e9ea45a-ff62-48f0-bb5a-e576b3d8a58e","publishedId":"2sAYBaBAHq","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"589AAF"},"publishDate":"2024-12-05T05:01:58.000Z"},"item":[{"name":"Vehicle","item":[{"name":"Save Vehicle","id":"700b757a-216a-4d22-b9e2-1373f32d18e1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"licensePlateNumber\": \"ABC1234\",\r\n    \"category\": \"Truck\",\r\n    \"fuelType\": \"Diesel\",\r\n    \"remark\": \"New vehicle\",\r\n    \"status\": \"AVAILABLE\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5055/fieldGuardian/api/v1/vehicle","description":"<p>Creates a new vehicle in the system.</p>\n","urlObject":{"path":["vehicle"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"700b757a-216a-4d22-b9e2-1373f32d18e1"},{"name":"Get Selected Vehicle","id":"444f4fba-eab6-414c-8b45-adaf88bc23cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/vehicle/VHL-20241106-001","description":"<p>Retrieves a vehicle by its unique identifier.</p>\n","urlObject":{"path":["vehicle","VHL-20241106-001"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"444f4fba-eab6-414c-8b45-adaf88bc23cd"},{"name":"Get All Vehicles","id":"827a24dd-c36c-4a12-8819-85affa40e201","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/vehicle","description":"<p>Retrieves a list of all vehicles.</p>\n","urlObject":{"path":["vehicle"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"827a24dd-c36c-4a12-8819-85affa40e201"},{"name":"Update Vehicle","id":"c45e0f12-d722-4aac-9e30-2b5467860f4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"licensePlateNumber\": \"XYZ5678\",\r\n    \"category\": \"SUV\",\r\n    \"fuelType\": \"Petrol\",\r\n    \"remark\": \"Updated vehicle details\",\r\n    \"status\": \"OUT_OF_SERVICE\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5055/fieldGuardian/api/v1/vehicle/VHL-20241106-001","description":"<p>Updates the details of an existing vehicle.</p>\n","urlObject":{"path":["vehicle","VHL-20241106-001"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"c45e0f12-d722-4aac-9e30-2b5467860f4c"},{"name":"Update Driver","id":"d6572d35-18e9-4e8b-a541-bdfe59b57179","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/vehicle/VHL-20241106-001/driver/STF-20241106-001","description":"<p>Updates the staff member of each vehicle.</p>\n","urlObject":{"path":["vehicle","VHL-20241106-001","driver","STF-20241106-001"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"d6572d35-18e9-4e8b-a541-bdfe59b57179"},{"name":"Delete Vehicle","id":"3f591355-b744-4e36-9e76-d65f82087e99","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/vehicle/VHL-20241102-001","description":"<p>Deletes a vehicle by its unique identifier.</p>\n","urlObject":{"path":["vehicle","VHL-20241102-001"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"3f591355-b744-4e36-9e76-d65f82087e99"},{"name":"Vehicle Filter","id":"e8ab1f37-8d31-41b7-960e-f8e430731603","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"licensePlateNumber\": \"ABC1234\",\r\n    \"category\": \"Truck\",\r\n    \"status\": \"AVAILABLE\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5055/fieldGuardian/api/v1/vehicle/filter","description":"<p>Filter the vehicles based on given criteria.</p>\n","urlObject":{"path":["vehicle","filter"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"e8ab1f37-8d31-41b7-960e-f8e430731603"}],"id":"5e69f743-51fc-4105-80b0-accbc25b7f4f","description":"<p>The <strong>Vehicle</strong> directory contains endpoints related to the management of vehicles within the FieldGuardian application. These endpoints allow for the creation, retrieval, updating, and deletion of vehicle records. Additionally, endpoints are provided for filtering and searching vehicles based on various criteria.</p>\n","_postman_id":"5e69f743-51fc-4105-80b0-accbc25b7f4f"},{"name":"Staff","item":[{"name":"Save Staff","id":"e2b70662-ca2b-44f6-acbe-3454a950d1ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"firstName\": \"John\",\r\n  \"lastName\": \"Doe\",\r\n  \"designation\": \"MANAGER\",\r\n  \"gender\": \"MALE\",\r\n  \"joinedDate\": \"2023-01-15\",\r\n  \"dateOfBirth\": \"1990-05-20\",\r\n  \"address\": \"123 Main St, Springfield\",\r\n  \"postalCode\": \"12345\",\r\n  \"contactNo\": \"1234567898\",\r\n  \"email\": \"grbhcr@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5055/fieldGuardian/api/v1/staff","description":"<p>Creates a new staff member in the system.</p>\n","urlObject":{"path":["staff"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"e2b70662-ca2b-44f6-acbe-3454a950d1ad"},{"name":"Staff Filter","id":"48f754b1-f946-4b9a-a0bb-dc9e55ca9392","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"John\",\r\n    \"designation\": \"MANAGER\",\r\n    \"gender\": \"MALE\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5055/fieldGuardian/api/v1/staff/filter","description":"<p>Filter the staff members upon given criteria.</p>\n","urlObject":{"path":["staff","filter"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"48f754b1-f946-4b9a-a0bb-dc9e55ca9392"},{"name":"Get Selected Staff","id":"9b6e6d77-8b12-47f0-bc0d-8558415d3cff","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/staff/STF-20241205-001","description":"<p>Retrieves a staff member by their unique identifier.</p>\n","urlObject":{"path":["staff","STF-20241205-001"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"9b6e6d77-8b12-47f0-bc0d-8558415d3cff"},{"name":"Get All Staffs","id":"9d823d9f-380d-4c61-b1a7-015779adef69","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/staff","description":"<p>Retrieves a list of all staff members.</p>\n","urlObject":{"path":["staff"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"9d823d9f-380d-4c61-b1a7-015779adef69"},{"name":"Get All Staff Vehicles","id":"27191847-d68c-41cc-9d17-4adbfba68b2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/staff/STF-20241103-001/vehicles","description":"<p>Retrieves a list of all staff members' vehicles.</p>\n","urlObject":{"path":["staff","STF-20241103-001","vehicles"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"27191847-d68c-41cc-9d17-4adbfba68b2d"},{"name":"Get All Staff Fields","id":"1f3fc5d8-b604-4174-9b80-ed9a16772941","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/staff/STF-20241103-001/fields","description":"<p>Retrieves a list of all staff members' fields.</p>\n","urlObject":{"path":["staff","STF-20241103-001","fields"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"1f3fc5d8-b604-4174-9b80-ed9a16772941"},{"name":"Get Staff Without  Equipment","id":"14d7908e-bd63-44dc-bed8-c4ec53cdb94f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/staff/without-equipment","description":"<p>Retrieves a list of all staff members who have no equipment assigned.</p>\n","urlObject":{"path":["staff","without-equipment"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"14d7908e-bd63-44dc-bed8-c4ec53cdb94f"},{"name":"Get All Designations","id":"0e7e34a0-0d92-4247-9144-700fe9be2685","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/staff/designations","description":"<p>Retrieves a list of all staff designations.</p>\n","urlObject":{"path":["staff","designations"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"0e7e34a0-0d92-4247-9144-700fe9be2685"},{"name":"Update Satff","id":"c46375f5-fda4-4508-b80c-7dc8e140e145","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"firstName\": \"Jane\",\r\n  \"lastName\": \"Smith\",\r\n  \"designation\": \"SENIOR ASSISTANT MANAGER\",\r\n  \"gender\": \"FEMALE\",\r\n  \"joinedDate\": \"2022-05-10\",\r\n  \"dateOfBirth\": \"1985-08-25\",\r\n  \"address\": \"456 Elm St, Springfield\",\r\n  \"postalCode\": \"67890\",\r\n  \"contactNo\": \"0987654321\",\r\n  \"email\": \"jane.smith@example.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5055/fieldGuardian/api/v1/staff/STF-20241106-001","description":"<p>Updates the details of an existing staff member.</p>\n","urlObject":{"path":["staff","STF-20241106-001"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"c46375f5-fda4-4508-b80c-7dc8e140e145"},{"name":"Delete Satff","id":"1babe076-0315-414b-852d-60938ebc6401","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/staff/STF-20241103-005","description":"<p>Deletes a staff member by their unique identifier.</p>\n","urlObject":{"path":["staff","STF-20241103-005"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"1babe076-0315-414b-852d-60938ebc6401"}],"id":"4c6d703c-7c50-4cdf-8b9d-9a1be38b6d47","description":"<p>The <strong>Staff</strong> directory includes endpoints for managing staff members in the FieldGuardian application. These endpoints support operations such as adding new staff, updating staff details, retrieving staff information, and removing staff records. The directory also includes endpoints for filtering and searching staff based on specific attributes.</p>\n","_postman_id":"4c6d703c-7c50-4cdf-8b9d-9a1be38b6d47"},{"name":"Field","item":[{"name":"Save Field","id":"f6198ee9-91d9-4662-ba67-bcb0aea4578e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Test Field","type":"text"},{"key":"location","value":"40.7128,-74.0060","type":"text"},{"key":"extentSize","value":"100.5","type":"text"},{"key":"fieldImage1","type":"file","src":"postman-cloud:///1ef8b532-e7ee-47f0-bae5-90aef8e9641a"},{"key":"fieldImage2","type":"file","src":"postman-cloud:///1ef8b48f-f46c-4930-bfbd-ea91f5831f0e"}]},"url":"http://localhost:5055/fieldGuardian/api/v1/field","description":"<p>Creates a new field in the system.</p>\n","urlObject":{"path":["field"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"f6198ee9-91d9-4662-ba67-bcb0aea4578e"},{"name":"Get Selected Field","id":"3dfd7259-91d8-4016-8344-2aba884cebdc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/field/FLD-20241106-001","description":"<p>Retrieves a field by its unique identifier.</p>\n","urlObject":{"path":["field","FLD-20241106-001"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"3dfd7259-91d8-4016-8344-2aba884cebdc"},{"name":"Get All Fields","id":"b76a6e32-3b92-42ce-9450-2a00b052af0b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/field","description":"<p>Retrieves a list of all fields.</p>\n","urlObject":{"path":["field"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"b76a6e32-3b92-42ce-9450-2a00b052af0b"},{"name":"Get All Field Staff","id":"fb69c56d-1b86-4383-b21c-cd7ac2df2795","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/field/FLD-20241106-001/staff","description":"<p>Retrieves a list of all staff members for the given field.</p>\n","urlObject":{"path":["field","FLD-20241106-001","staff"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"fb69c56d-1b86-4383-b21c-cd7ac2df2795"},{"name":"Get All Field Crops","id":"18190e49-2506-4b04-a078-5098e8fa9e7e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/field/FLD-20241106-002/crops","description":"<p>Retrieves a list of all crops for the given field.</p>\n","urlObject":{"path":["field","FLD-20241106-002","crops"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"18190e49-2506-4b04-a078-5098e8fa9e7e"},{"name":"Update Field","id":"92edbee6-817b-4e62-8ce2-1572b283b90f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"name","value":"Test Field Update","type":"text"},{"key":"location","value":"40.7158,-74.0060","type":"text"},{"key":"extentSize","value":"80.2","type":"text"},{"key":"fieldImage1","type":"file","src":"postman-cloud:///1ef8b48f-f46c-4930-bfbd-ea91f5831f0e"},{"key":"fieldImage2","type":"file","src":"postman-cloud:///1ef8b532-e7ee-47f0-bae5-90aef8e9641a"}]},"url":"http://localhost:5055/fieldGuardian/api/v1/field/FLD-20241106-001","description":"<p>Updates the details of an existing field.</p>\n","urlObject":{"path":["field","FLD-20241106-001"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"92edbee6-817b-4e62-8ce2-1572b283b90f"},{"name":"Update Field Staff","id":"536e61a0-22e0-4056-ab98-a80e11cf1318","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"[\r\n    \"STF-20241106-001\",\r\n    \"STF-20241106-002\"\r\n]","options":{"raw":{"language":"json"}}},"url":"http://localhost:5055/fieldGuardian/api/v1/field/FLD-20241106-001/staff","description":"<p>Updates an existing field's staff members.</p>\n","urlObject":{"path":["field","FLD-20241106-001","staff"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"536e61a0-22e0-4056-ab98-a80e11cf1318"},{"name":"Delete Field","id":"699810ef-2a39-466a-b838-ab78cf842e75","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/field/FLD-20241106-002","description":"<p>Deletes a field by its unique identifier.</p>\n","urlObject":{"path":["field","FLD-20241106-002"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"699810ef-2a39-466a-b838-ab78cf842e75"}],"id":"16cf9ee8-54c7-4b5c-8493-5525662383a9","description":"<p>The <strong>Field</strong> directory encompasses endpoints for handling field data within the FieldGuardian application. These endpoints facilitate the creation, retrieval, updating, and deletion of field records. Users can also filter and search fields based on various parameters, ensuring efficient management of agricultural fields.</p>\n","_postman_id":"16cf9ee8-54c7-4b5c-8493-5525662383a9"},{"name":"Equipment","item":[{"name":"Save Equipment","id":"3f43bde3-5416-4710-b7e9-cd02cdaab98b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Tractor\",\r\n  \"type\": \"Agricultural\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5055/fieldGuardian/api/v1/equipment","description":"<p>Creates a new equipment in the system.</p>\n","urlObject":{"path":["equipment"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"3f43bde3-5416-4710-b7e9-cd02cdaab98b"},{"name":"Get Selected Equipment","id":"26f3f5cd-e005-4c90-83fe-5d5374a61948","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/equipment/EQP-20241106-001","description":"<p>Retrieves equipment by its unique identifier.</p>\n","urlObject":{"path":["equipment","EQP-20241106-001"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"26f3f5cd-e005-4c90-83fe-5d5374a61948"},{"name":"Get All Equipment","id":"db9b755b-1532-4dd5-9260-36f58d5d322f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/equipment","description":"<p>Retrieves a list of all equipment.</p>\n","urlObject":{"path":["equipment"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"db9b755b-1532-4dd5-9260-36f58d5d322f"},{"name":"Get All Available Equipment","id":"5208a913-e62b-49cf-b606-07c43b638186","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/equipment/available","description":"<p>Retrieves a list of all available (assignable) equipment.</p>\n","urlObject":{"path":["equipment","available"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"5208a913-e62b-49cf-b606-07c43b638186"},{"name":"Get Field Equipment","id":"d2023e95-47ec-484d-9b3b-1a73b6f98cc8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/equipment/field/FLD-20241106-001","description":"<p>Retrieves a list of all equipment for a given field.</p>\n","urlObject":{"path":["equipment","field","FLD-20241106-001"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"d2023e95-47ec-484d-9b3b-1a73b6f98cc8"},{"name":"Update Equipment","id":"5735812a-690d-45fa-81f2-0d5f80fc7d58","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Harvester\",\r\n  \"type\": \"Agricultural\",\r\n  \"status\": \"UNDER_MAINTENANCE\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5055/fieldGuardian/api/v1/equipment/EQP-20241106-001","description":"<p>Updates the details of existing equipment.</p>\n","urlObject":{"path":["equipment","EQP-20241106-001"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"5735812a-690d-45fa-81f2-0d5f80fc7d58"},{"name":"Update Field Equipments","id":"8e5aa441-d503-4230-9691-6906269b1186","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"[\r\n    \"EQP-20241106-001\",\r\n    \"EQP-20241106-002\"\r\n]","options":{"raw":{"language":"json"}}},"url":"http://localhost:5055/fieldGuardian/api/v1/equipment/field/FLD-20241106-001","description":"<p>Updates the field of existing equipment.</p>\n","urlObject":{"path":["equipment","field","FLD-20241106-001"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"8e5aa441-d503-4230-9691-6906269b1186"},{"name":"Update Equipment Staff","id":"103d9114-d483-46f1-924d-a63de07dc806","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"equipmentId\": \"EQP-20241106-001\",\r\n    \"staffId\": \"STF-20241106-002\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5055/fieldGuardian/api/v1/equipment/update-staff","description":"<p>Updates the staff of existing equipment.</p>\n","urlObject":{"path":["equipment","update-staff"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"103d9114-d483-46f1-924d-a63de07dc806"},{"name":"Delete Equipment","id":"278e7aaa-0c99-4e9d-a32b-d5ca7782b0c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/equipment/EQP-20241106-001","description":"<p>Deletes equipment by its unique identifier.</p>\n","urlObject":{"path":["equipment","EQP-20241106-001"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"278e7aaa-0c99-4e9d-a32b-d5ca7782b0c3"}],"id":"ed66eb98-5820-49ca-a271-953285527d11","description":"<p>The <strong>Equipment</strong> directory provides endpoints for managing equipment in the FieldGuardian application. These endpoints support operations such as adding new equipment, updating equipment details, retrieving equipment information, and removing equipment records. Additionally, endpoints for filtering and searching equipment based on specific criteria are included.</p>\n","_postman_id":"ed66eb98-5820-49ca-a271-953285527d11"},{"name":"Crop","item":[{"name":"Save Crop","id":"db670e06-7e14-44dd-9119-1a98f89d2e6a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"commonName","value":"Wheat","type":"text"},{"key":"scientificName","value":"Triticum aestivum","type":"text"},{"key":"cropImage","type":"file","src":"postman-cloud:///1ef8b532-e7ee-47f0-bae5-90aef8e9641a"},{"key":"category","value":"Cereal","type":"text"},{"key":"season","value":"Winter","type":"text"},{"key":"fieldCode","value":"FLD-20241106-002","type":"text"}]},"url":"http://localhost:5055/fieldGuardian/api/v1/crop","description":"<p>Creates a new crop in the system.</p>\n","urlObject":{"path":["crop"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"db670e06-7e14-44dd-9119-1a98f89d2e6a"},{"name":"Get Selected Crop","id":"00a1373e-8fe8-4760-a580-255f37b03bb1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/crop/CRP-20241106-005","description":"<p>Retrieves a crop by its unique identifier.</p>\n","urlObject":{"path":["crop","CRP-20241106-005"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"00a1373e-8fe8-4760-a580-255f37b03bb1"},{"name":"Get All Crops","id":"30f5b26c-f00f-473e-b75b-3135537d1f15","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/crop","description":"<p>Retrieves a list of all crops.</p>\n","urlObject":{"path":["crop"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"30f5b26c-f00f-473e-b75b-3135537d1f15"},{"name":"Update Crop","id":"b6296218-eaae-4332-89da-293efbd2a8aa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"commonName","value":"Tomato","type":"text"},{"key":"scientificName","value":"Solanum lycopersicum","type":"text"},{"key":"cropImage","type":"file","src":"postman-cloud:///1ef8b48f-f46c-4930-bfbd-ea91f5831f0e"},{"key":"category","value":"Vegetable","type":"text"},{"key":"season","value":"Summer","type":"text"},{"key":"fieldCode","value":"FLD-20241106-001","type":"text"}]},"url":"http://localhost:5055/fieldGuardian/api/v1/crop/CRP-20241106-005","description":"<p>Updates the details of an existing crop.</p>\n","urlObject":{"path":["crop","CRP-20241106-005"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"b6296218-eaae-4332-89da-293efbd2a8aa"},{"name":"Update Crop Field","id":"4071651a-f7ca-4383-8171-3ce8fa85445a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"[\r\n    \"EQP-20241106-001\",\r\n    \"EQP-20241106-002\"\r\n]","options":{"raw":{"language":"json"}}},"url":"http://localhost:5055/fieldGuardian/api/v1/equipment/field/FLD-20241106-001","description":"<p>Updates the field of an existing crop.</p>\n","urlObject":{"path":["equipment","field","FLD-20241106-001"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"4071651a-f7ca-4383-8171-3ce8fa85445a"},{"name":"Delete Crop","id":"a99c2bf9-32ac-40fe-b390-109973f76e5d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/crop/CRP-20241106-006","description":"<p>Deletes a crop by its unique identifier.</p>\n","urlObject":{"path":["crop","CRP-20241106-006"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"a99c2bf9-32ac-40fe-b390-109973f76e5d"}],"id":"fe51fb38-2d7d-4b7d-9aa0-882040b28768","description":"<p>The <strong>Crop</strong> directory contains endpoints related to the management of crops within the FieldGuardian application. These endpoints allow for the creation, retrieval, updating, and deletion of crop records. Users can also filter and search crops based on various attributes, ensuring effective crop management.</p>\n","_postman_id":"fe51fb38-2d7d-4b7d-9aa0-882040b28768"},{"name":"MonitoringLog","item":[{"name":"Save MonitoringLog","id":"cfead27c-c9ea-4407-a927-c4e1b67c2ee3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"date","value":"2024-11-11","type":"text"},{"key":"details","value":"Monitoring log details here","type":"text"},{"key":"observedImage","type":"file","src":"postman-cloud:///1ef8b532-e7ee-47f0-bae5-90aef8e9641a"},{"key":"fieldCode","value":"FLD-20241106-001","type":"text"}]},"url":"http://localhost:5055/fieldGuardian/api/v1/monitoring-log","description":"<p>Creates a new monitoring log in the system.</p>\n","urlObject":{"path":["monitoring-log"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"cfead27c-c9ea-4407-a927-c4e1b67c2ee3"},{"name":"MonitoringLog Filter","id":"3739350a-2ac8-4d3e-849d-4f1016603be5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Gayanuka Bulegoda\",\r\n    \"date\": \"2024-12-04\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5055/fieldGuardian/api/v1/monitoring-log/filter","description":"<p>Filter the monitoring-log upon given criteria.</p>\n","urlObject":{"path":["monitoring-log","filter"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"3739350a-2ac8-4d3e-849d-4f1016603be5"},{"name":"Get Selected MonitoringLog","id":"f84cac81-6823-45b0-845f-1c64e6d17c60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/monitoring-log/MNL-20241107-014","description":"<p>Retrieves a monitoring log by its unique identifier.</p>\n","urlObject":{"path":["monitoring-log","MNL-20241107-014"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"f84cac81-6823-45b0-845f-1c64e6d17c60"},{"name":"Get All MonitoringLogs","id":"f08df0e3-bede-4140-bbad-d2a6d1467936","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/monitoring-log","description":"<p>Retrieves a list of all monitoring logs.</p>\n","urlObject":{"path":["monitoring-log"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"f08df0e3-bede-4140-bbad-d2a6d1467936"},{"name":"Get MonitoringLog Staff","id":"45df6343-5d88-488d-8a4e-4874774fe6a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/monitoring-log/MNL-20241107-014/staff","description":"<p>Retrieves a list of staff members for the given monitoring log id.</p>\n","urlObject":{"path":["monitoring-log","MNL-20241107-014","staff"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"45df6343-5d88-488d-8a4e-4874774fe6a8"},{"name":"Get MonitoringLog Crops","id":"90843596-6967-46f7-974b-fa18b78900ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/monitoring-log/MNL-20241107-014/crops","description":"<p>Retrieves a list of crops for the given monitoring log id.</p>\n","urlObject":{"path":["monitoring-log","MNL-20241107-014","crops"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"90843596-6967-46f7-974b-fa18b78900ee"},{"name":"Update MonitoringLog","id":"0a2d21d9-50c1-405f-b9e2-45e8338f9ff5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"formdata","formdata":[{"key":"date","value":"2024-11-11","type":"text"},{"key":"details","value":"Updated monitoring log details here","type":"text"},{"key":"observedImage","type":"file","src":"postman-cloud:///1ef8b48f-f46c-4930-bfbd-ea91f5831f0e"},{"key":"fieldCode","value":"FLD-20241106-002","type":"text"}]},"url":"http://localhost:5055/fieldGuardian/api/v1/monitoring-log/MNL-20241107-015","description":"<p>Updates the details of an existing monitoring log.</p>\n","urlObject":{"path":["monitoring-log","MNL-20241107-015"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"0a2d21d9-50c1-405f-b9e2-45e8338f9ff5"},{"name":"Update Staff and Crops","id":"ee415a22-51d5-44ac-92ae-5d1298654a4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"monitoringLogId\": \"MNL-20241108-019\",\r\n  \"staffIds\": [\r\n    \"STF-20241106-001\",\r\n    \"STF-20241106-002\"\r\n  ],\r\n  \"cropCodes\": [\r\n    \"CRP-20241106-005\",\r\n    \"CRP-20241106-007\"\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5055/fieldGuardian/api/v1/monitoring-log/update-staff-and-crops","description":"<p>Updates the staff members and crops of an existing monitoring log.</p>\n","urlObject":{"path":["monitoring-log","update-staff-and-crops"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"ee415a22-51d5-44ac-92ae-5d1298654a4f"}],"id":"f845caff-5b8c-491e-9d0c-d9f2f6cd5d35","description":"<p>The <strong>MonitoringLog</strong> directory includes endpoints for managing monitoring logs in the FieldGuardian application. These endpoints support operations such as adding new monitoring logs, updating log details, retrieving log information, and deleting logs. The directory also provides endpoints for filtering and searching monitoring logs based on specific criteria.</p>\n","_postman_id":"f845caff-5b8c-491e-9d0c-d9f2f6cd5d35"},{"name":"Auth","item":[{"name":"Sign Up User","id":"ecd03b29-2529-400a-b4f3-5721beddbbc3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"// {\r\n//     \"email\":\"jane.smith@example.com\",\r\n//     \"password\":\"1234\"\r\n// }\r\n{\r\n    \"email\": \"grbhcr@gmail.com\",\r\n    \"password\": \"1234\",\r\n    \"otp\": \"342318\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5055/fieldGuardian/api/v1/auth/register","description":"<p>Registers a new user in the system.</p>\n","urlObject":{"path":["auth","register"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"ecd03b29-2529-400a-b4f3-5721beddbbc3"},{"name":"Sign In User","id":"3ed13dbf-5cc2-4cec-90e3-8ceb80196f1f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"gayanukariviru@gmail.com\",\r\n    \"password\":\"Abc1234#\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5055/fieldGuardian/api/v1/auth/authenticate","description":"<p>Authenticates a user and returns a JWT token.</p>\n","urlObject":{"path":["auth","authenticate"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"3ed13dbf-5cc2-4cec-90e3-8ceb80196f1f"},{"name":"Validate Token","id":"64cde1b1-845c-4f81-be8b-fb3364e3e6a5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/auth/validate","description":"<p>Validates the current JWT token.</p>\n","urlObject":{"path":["auth","validate"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"64cde1b1-845c-4f81-be8b-fb3364e3e6a5"},{"name":"Request OTP","id":"a77b6289-162b-4305-b263-199c4afc9be1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/auth/otp?option=0&email=grbhcr@gmail.com","description":"<p>Request the OTP for user registration or user password update.</p>\n","urlObject":{"path":["auth","otp"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[{"key":"option","value":"0"},{"key":"email","value":"grbhcr@gmail.com"}],"variable":[]}},"response":[],"_postman_id":"a77b6289-162b-4305-b263-199c4afc9be1"},{"name":"Refresh Token","id":"8ac8e137-b3b2-4955-9ea0-eb282887d0ca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/auth/refresh?refreshToken=eyJhbGciOiJIUzI1NiJ9.eyJyb2xlIjpbeyJhdXRob3JpdHkiOiJST0xFX01BTkFHRVIifV0sInN1YiI6ImdheWFudWthcml2aXJ1QGdtYWlsLmNvbSIsImlhdCI6MTczMzExODk3MCwiZXhwIjoxNzMzNzIzNzcwfQ.cTCzoSRFerL93Gsz-21vuulr6jk6ku6G86wo55vGEQc","description":"<p>Refesh and returns a new JWT token for the retrived JWT token</p>\n","urlObject":{"path":["auth","refresh"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[{"key":"refreshToken","value":"eyJhbGciOiJIUzI1NiJ9.eyJyb2xlIjpbeyJhdXRob3JpdHkiOiJST0xFX01BTkFHRVIifV0sInN1YiI6ImdheWFudWthcml2aXJ1QGdtYWlsLmNvbSIsImlhdCI6MTczMzExODk3MCwiZXhwIjoxNzMzNzIzNzcwfQ.cTCzoSRFerL93Gsz-21vuulr6jk6ku6G86wo55vGEQc"}],"variable":[]}},"response":[],"_postman_id":"8ac8e137-b3b2-4955-9ea0-eb282887d0ca"}],"id":"17f76f11-95d4-4354-a367-d4fbaeab4a8f","description":"<p>The <strong>Auth</strong> directory provides endpoints for authentication and authorization within the FieldGuardian application. These endpoints handle user login, registration, password management, and token generation. The directory ensures secure access to the application by managing user authentication and authorization processes.</p>\n","_postman_id":"17f76f11-95d4-4354-a367-d4fbaeab4a8f"},{"name":"User","item":[{"name":"Get User","id":"e8a9c124-0d06-4f85-9619-70158b742376","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/user?email=jane.smith@example.com","urlObject":{"path":["user"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[{"key":"email","value":"jane.smith@example.com"}],"variable":[]}},"response":[],"_postman_id":"e8a9c124-0d06-4f85-9619-70158b742376"},{"name":"Get All Users","id":"c27a8a78-2493-474a-9166-36c50b50ec5b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/user/all","urlObject":{"path":["user","all"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"c27a8a78-2493-474a-9166-36c50b50ec5b"},{"name":"Update User","id":"39ad327c-3a0f-4eb6-b3e6-5d0ac157df35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"gayanukariviru@gmail.com\",\r\n    \"password\":\"12345\",\r\n    \"otp\":\"500555\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5055/fieldGuardian/api/v1/user/update","urlObject":{"path":["user","update"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"39ad327c-3a0f-4eb6-b3e6-5d0ac157df35"},{"name":"Delete User","id":"662e5bd0-aa24-43cc-8ddb-b952970b1e56","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/user?email=gayanukariviru@gmail.com","urlObject":{"path":["user"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[{"key":"email","value":"gayanukariviru@gmail.com"}],"variable":[]}},"response":[],"_postman_id":"662e5bd0-aa24-43cc-8ddb-b952970b1e56"}],"id":"8c629fef-0694-4565-a6f7-26e574e5b6b6","description":"<p>The <strong>User</strong> directory contains endpoints for managing user accounts in the FieldGuardian application. These endpoints support operations such as creating new user accounts, updating user details, retrieving user information, and deleting user accounts. Additionally, endpoints for managing user roles and permissions are included.</p>\n","_postman_id":"8c629fef-0694-4565-a6f7-26e574e5b6b6"},{"name":"Dashboard","item":[{"name":"Get Total User Count","id":"e6e529cd-0c60-4655-b376-41826b89994b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/dashboard/user-count","urlObject":{"path":["dashboard","user-count"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"e6e529cd-0c60-4655-b376-41826b89994b"},{"name":"Get Total Staff Count","id":"70baa95a-7206-47b8-8ab7-298cc433f329","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/dashboard/staff-count","urlObject":{"path":["dashboard","staff-count"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"70baa95a-7206-47b8-8ab7-298cc433f329"},{"name":"Get Total Crop Count","id":"e3b633de-f77f-4967-87f5-b7ce92d146b3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/dashboard/crop-count","urlObject":{"path":["dashboard","crop-count"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"e3b633de-f77f-4967-87f5-b7ce92d146b3"},{"name":"Get Total Vehicle Count","id":"98df6ccd-8757-433e-b1b6-a7e17f685517","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/dashboard/vehicle-count","urlObject":{"path":["dashboard","vehicle-count"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"98df6ccd-8757-433e-b1b6-a7e17f685517"},{"name":"Get Total Equipment Count","id":"0393192b-8e70-4019-86ae-03e2a82873a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/dashboard/equipment-count","urlObject":{"path":["dashboard","equipment-count"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"0393192b-8e70-4019-86ae-03e2a82873a4"},{"name":"Get Top Five Monitored Fields","id":"d866481a-130a-439c-96e1-831a6b3a5754","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/dashboard/top-fields","urlObject":{"path":["dashboard","top-fields"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[],"_postman_id":"d866481a-130a-439c-96e1-831a6b3a5754"}],"id":"ed9b58e0-0950-4552-8e10-e86801c62644","description":"<p>The <strong>Dashboard</strong> directory provides endpoints for retrieving analytical data and statistics within the FieldGuardian application. These endpoints offer insights into various aspects of the application, such as vehicle usage, staff performance, field productivity, equipment status, crop health, and monitoring activities. The directory enables users to access and visualize key metrics for informed decision-making.</p>\n","_postman_id":"ed9b58e0-0950-4552-8e10-e86801c62644"},{"name":"Health Check","id":"eb3ddbeb-4964-4867-86c9-03e5b33e885e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/health-test","urlObject":{"path":["health-test"],"host":["http://localhost:5055/fieldGuardian/api/v1"],"query":[],"variable":[]}},"response":[{"id":"90ced57a-81ce-4f04-86da-b1022ad711cf","name":"Example Response","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5055/fieldGuardian/api/v1/health-test"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Content-Type","value":"text/html;charset=UTF-8"},{"key":"Content-Language","value":"en-US"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Wed, 30 Oct 2024 20:07:10 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"<!DOCTYPE html>\n<html lang=\"en\">\n    <head>\n        <meta charset=\"UTF-8\">\n        <title>Health Check</title>\n        <link rel=\"stylesheet\" href=\"https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css\">\n        <style>\r\n        body {\r\n            font-family: Arial, sans-serif;\r\n            background-color: #e8f5e9;\r\n            margin-top: 50px;\r\n        }\r\n        .card {\r\n            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);\r\n            border: none;\r\n            transition: transform 0.3s ease, box-shadow 0.3s ease;\r\n        }\r\n        .card:hover {\r\n            transform: translateY(-10px);\r\n            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);\r\n        }\r\n        .card-header {\r\n            background-color: #388e3c;\r\n            color: white;\r\n            transition: background-color 0.3s ease;\r\n        }\r\n        .card-header:hover {\r\n            background-color: #2e7d32;\r\n        }\r\n        .card-body {\r\n            background-color: #c8e6c9;\r\n        }\r\n        .lead {\r\n            font-size: 1.25rem;\r\n            color: #2e7d32;\r\n        }\r\n    </style>\n    </head>\n    <body>\n        <div class=\"container text-center\">\n            <div class=\"row justify-content-center\">\n                <div class=\"col-md-8\">\n                    <div class=\"card mt-5\">\n                        <div class=\"card-header\">\n                            <h1>Field Guardian BACKEND is RUNNING!!</h1>\n                        </div>\n                        <div class=\"card-body\">\n                            <p class=\"lead\">The Field Guardian BACKEND is running smoothly.</p>\n                        </div>\n                    </div>\n                </div>\n            </div>\n        </div>\n        <script src=\"https://code.jquery.com/jquery-3.5.1.slim.min.js\"></script>\n        <script src=\"https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.4/dist/umd/popper.min.js\"></script>\n        <script src=\"https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js\"></script>\n    </body>\n</html>"}],"_postman_id":"eb3ddbeb-4964-4867-86c9-03e5b33e885e"}],"event":[{"listen":"prerequest","script":{"id":"1e687450-5079-427e-8e4d-ac8c712d2b88","type":"text/javascript","packages":{},"exec":[""]}},{"listen":"test","script":{"id":"fe8652ea-46dc-451c-9bb4-0e96e25b126c","type":"text/javascript","packages":{},"exec":[""]}}],"variable":[{"key":"base URL","value":"http://localhost:5055/fieldGuardian/api/v1","type":"string"}]}