{"info":{"_postman_id":"268db069-e5d5-4b95-bb13-3f0f4e1c85ca","name":"Green-Shadow","description":"<html><head></head><body><p>This Green Shadow Documentation provides a comprehensive set of endpoints for managing users,logs,equipments,fields,staffs,vehicles,crops and processing transactions.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"35385442","collectionId":"268db069-e5d5-4b95-bb13-3f0f4e1c85ca","publishedId":"2sAYBaApai","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-12-04T19:07:22.000Z"},"item":[{"name":"User","item":[{"name":"SignUP","id":"0602642f-7d37-42fd-ba81-361d57ab2b00","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"Sas@gmail.com\",\r\n    \"password\":\"Green@1234\",\r\n    \"role\":\"MANAGER\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/auth/signup","description":"<p>This endpoint is used to signup a new user to the system. The request must contain user details in the JSON format. The server will validate the input data.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","auth","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0602642f-7d37-42fd-ba81-361d57ab2b00"},{"name":"SignIn","id":"a7051227-3754-4cc1-bbb9-f15b0fa4ba2c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\":\"Sas@gmail.com\",\r\n    \"password\":\"Green@1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/auth/signin","description":"<p>This endpoint is used to signin a new user to the system. The request must contain user details in the JSON format. The server will validate the input data.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","auth","signin"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a7051227-3754-4cc1-bbb9-f15b0fa4ba2c"}],"id":"ff43e6fc-005a-43f7-ba5b-e7302e691760","description":"<p>This is a user endpoint testing section.</p>\n","_postman_id":"ff43e6fc-005a-43f7-ba5b-e7302e691760"},{"name":"Log","item":[{"name":"Save Log","id":"944dbacb-9cc8-47f8-9e15-dd59aecddb38","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"logDate\": \"2024-11-27\",\r\n  \"logDetails\": \"Log details go herex.\",\r\n  \"role\": \"MANAGER\",\r\n  \"fieldCode\": \"FI-001\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/log/save","description":"<p>This endpoint is used to add a new log to the system. The request must contain log details in the JSON format. The server will validate the input data.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","log","save"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"944dbacb-9cc8-47f8-9e15-dd59aecddb38"},{"name":"Update Log","id":"50d82e2b-7fef-4ebb-90a0-594076a11de7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n  \"logDate\": \"2024-11-27\",\r\n  \"logDetails\": \"Log details go herexxxxxxx.\",\r\n  \"role\": \"MANAGER\",\r\n  \"fieldCode\": \"FI-001\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v2/log/L0G-002","description":"<p>This endpoint is used to update an existing log's details in the system. The request must contain log details in the JSON format. The server will validate the input data to ensure it meets the required criteria before updating the log's information.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v2","log","L0G-002"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"50d82e2b-7fef-4ebb-90a0-594076a11de7"},{"name":"Get All Logs","id":"30490887-6d31-4904-b0f1-77cd20862d8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/log","description":"<p>This endpoint is used to retrieve all log information from the system.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","log"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"30490887-6d31-4904-b0f1-77cd20862d8b"}],"id":"7ae968dd-9b31-4af8-b466-fcb7bde2b934","description":"<p>This is a log endpoint testing section.</p>\n","_postman_id":"7ae968dd-9b31-4af8-b466-fcb7bde2b934"},{"name":"Crop","item":[{"name":"Save Crop","id":"451e40f1-4209-404b-ba05-1cfc27f4df0f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"cropCommonName","value":"CASSSVA","type":"text"},{"key":"cropScientificName","value":"BG34","type":"text"},{"key":"category","value":"FEED","type":"text"},{"key":"qty","value":"100","type":"text"},{"key":"cropSeason","value":"JANUARY","type":"text"},{"key":"fieldCodes","value":"FI-001","type":"text"},{"key":"filedNames","value":"FieldA","type":"text"},{"key":"cropImage","type":"file","src":"postman-cloud:///1efa7784-9a7e-49f0-81dd-764aaeac88e8"}]},"url":"http://localhost:8080/api/v1/crop","description":"<p>This endpoint is used to add a new crop to the system. The request must contain crop details in the JSON format. The server will validate the input data.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","crop"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"451e40f1-4209-404b-ba05-1cfc27f4df0f"},{"name":"Update Crop","id":"92aa7987-1bdd-40ca-91f5-03eed790601a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"cropCommonName","value":"RICE","type":"text"},{"key":"cropScientificName","value":"BG34","type":"text"},{"key":"category","value":"FEED","type":"text"},{"key":"qty","value":"10","type":"text"},{"key":"cropSeason","value":"APRIL","type":"text"},{"key":"fieldCodes","value":"FI-001","type":"text"},{"key":"filedNames","value":"FieldC","type":"text"},{"key":"cropImage","type":"file","src":"postman-cloud:///1efa7784-9a7e-49f0-81dd-764aaeac88e8"}]},"url":"http://localhost:8080/api/v1/crop/CR-006\n","description":"<p>This endpoint is used to update an existing crop's details in the system. The request must contain crop details in the JSON format. The server will validate the input data to ensure it meets the required criteria before updating the crop's information.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","crop","CR-006\n"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"92aa7987-1bdd-40ca-91f5-03eed790601a"},{"name":"Delete Crop","id":"16765a08-9a25-478c-9c41-61a1a578e244","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8080/api/v1/crop?cCode=CR-006","description":"<p>This endpoint is used to delete an existing crop from the system. To use this endpoint, include the crop's ID as a query parameter in the request URL. The server will attempt to delete the crop with the specified ID.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","crop"],"host":["localhost"],"query":[{"key":"cCode","value":"CR-006"}],"variable":[]}},"response":[],"_postman_id":"16765a08-9a25-478c-9c41-61a1a578e244"},{"name":"Get All Crops","id":"b3dfcfea-2b95-479c-add7-ade79fc00e54","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/crop","description":"<p>This endpoint is used to retrieve all crop information from the system.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","crop"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b3dfcfea-2b95-479c-add7-ade79fc00e54"},{"name":"Get next Crop Code","id":"e8234149-7077-4508-a2af-e4e3d413f9f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/crop/cropCode","description":"<p>This endpoint is used to retrieve next crop code from the system.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","crop","cropCode"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e8234149-7077-4508-a2af-e4e3d413f9f6"}],"id":"1333c96d-0237-4755-9b6c-2a59ad7033a9","description":"<p>This is a crop endpoint testing section.</p>\n","_postman_id":"1333c96d-0237-4755-9b6c-2a59ad7033a9"},{"name":"Equipment","item":[{"name":"Save Equipment","id":"71352910-8bb8-4d75-a849-d207c326605e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"equipmentId\": \"EQ-004\",\r\n  \"name\": \"Knife\",\r\n  \"type\": \"MECHANICAL\",\r\n  \"status\": \"AVAILABLE\",\r\n  \"equantity\": 5,\r\n  \"assignedStaffId\": \"ST-001\",\r\n  \"assignedFieldCode\": \"FI-001\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/equipment","description":"<p>This endpoint is used to add a new equipment to the system. The request must contain equipment details in the JSON format. The server will validate the input data.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","equipment"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"71352910-8bb8-4d75-a849-d207c326605e"},{"name":"Update Equipment","id":"8e42d063-4787-4229-ada7-751d4b9771d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"equipmentId\": \"EQ-004\",\r\n  \"name\": \"Knifex\",\r\n  \"type\": \"MECHANICAL\",\r\n  \"status\": \"AVAILABLE\",\r\n  \"equantity\": 5,\r\n  \"assignedStaffId\": \"ST-001\",\r\n  \"assignedFieldCode\": \"FI-001\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/equipment/update","description":"<p>This endpoint is used to update an existing equipment's details in the system. The request must contain equipment details in the JSON format. The server will validate the input data to ensure it meets the required criteria before updating the equipment's information.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","equipment","update"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8e42d063-4787-4229-ada7-751d4b9771d6"},{"name":"Delete Equipment","id":"80bfdca3-0b73-46a7-b86a-517412e829e0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8080/api/v1/equipment?eCode=EQ-004","description":"<p>This endpoint is used to delete an existing equipment from the system. To use this endpoint, include the equipment's ID as a query parameter in the request URL. The server will attempt to delete the equipment with the specified ID.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","equipment"],"host":["localhost"],"query":[{"key":"eCode","value":"EQ-004"}],"variable":[]}},"response":[],"_postman_id":"80bfdca3-0b73-46a7-b86a-517412e829e0"},{"name":"Get Next Equipmnet Id","id":"0cb48115-8398-4625-9ea2-c029d156d9c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/equipment/nextEId","description":"<p>This endpoint is used to retrieve next equipment code from the system.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","equipment","nextEId"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0cb48115-8398-4625-9ea2-c029d156d9c1"},{"name":"Get All Equipment","id":"c1d57db0-3589-4472-9c87-23884f6060eb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/equipment","description":"<p>This endpoint is used to retrieve all equipment information from the system.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","equipment"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c1d57db0-3589-4472-9c87-23884f6060eb"}],"id":"70f8196c-c768-4c65-9421-c16ddf8a5307","description":"<p>This is a equipment endpoint testing section.</p>\n","_postman_id":"70f8196c-c768-4c65-9421-c16ddf8a5307"},{"name":"Field","item":[{"name":"Save Field","id":"5a07dc85-1dcd-4483-aaeb-bf952239a243","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"fieldName","value":"Example Field Name","type":"text"},{"key":"fieldLocation","value":"BC123","type":"text"},{"key":"size","value":"12.5","type":"text"},{"key":"cropCode","value":"CR-001","type":"text"},{"key":"nameOfCrop","value":"wheat","type":"text"},{"key":"staffId","value":"ST-001","type":"text"},{"key":"fieldImage1","type":"file","src":"postman-cloud:///1efa7784-9a7e-49f0-81dd-764aaeac88e8"}]},"url":"http://localhost:8080/api/v1/field/save","description":"<p>This endpoint is used to add a new field to the system. The request must contain field details in the JSON format. The server will validate the input data.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","field","save"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"5a07dc85-1dcd-4483-aaeb-bf952239a243"},{"name":"Update Field","id":"bab751ae-e544-4d8b-a9eb-ea1bdfab2e09","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"fieldCode","value":"FI-010","type":"text"},{"key":"fieldName","value":"Updated Field Name","type":"text"},{"key":"fieldLocation","value":"BC123","type":"text"},{"key":"size","value":"15.0","type":"text"},{"key":"cropCode","value":"CR-001","type":"text"},{"key":"nameOfCrop","value":"Corn","type":"text"},{"key":"staffId","value":"ST-001","type":"text"},{"key":"fieldImageFile","type":"file","src":"postman-cloud:///1efa7784-9a7e-49f0-81dd-764aaeac88e8"}]},"url":"http://localhost:8080/api/v1/field/update","description":"<p>This endpoint is used to update an existing field's details in the system. The request must contain field details in the JSON format. The server will validate the input data to ensure it meets the required criteria before updating the field's information.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","field","update"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bab751ae-e544-4d8b-a9eb-ea1bdfab2e09"},{"name":"Delete Field","id":"521dd218-f225-401b-bde4-0e350a383662","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8080/api/v1/field?fCode=FI-010","description":"<p>This endpoint is used to delete an existing field from the system. To use this endpoint, include the field's ID as a query parameter in the request URL. The server will attempt to delete the field with the specified ID.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","field"],"host":["localhost"],"query":[{"key":"fCode","value":"FI-010"}],"variable":[]}},"response":[],"_postman_id":"521dd218-f225-401b-bde4-0e350a383662"},{"name":"Get All Fields","id":"341723cf-5a95-424b-991d-f3523aae0244","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/field","description":"<p>This endpoint is used to retrieve all field information from the system.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","field"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"341723cf-5a95-424b-991d-f3523aae0244"},{"name":"Get Next Field Code","id":"659f0365-ff9f-4735-ac15-54ad7ee92832","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/field/generateFieldCode","description":"<p>This endpoint is used to retrieve next field code from the system.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","field","generateFieldCode"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"659f0365-ff9f-4735-ac15-54ad7ee92832"}],"id":"2dcf3613-a8a4-4235-ba50-4923a0ff1ad8","description":"<p>This is a field endpoint testing section.</p>\n","_postman_id":"2dcf3613-a8a4-4235-ba50-4923a0ff1ad8"},{"name":"Staff","item":[{"name":"Save Staff","id":"f309c6c1-43f8-42a8-af3b-b64e0b4fddf0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"staffId\": \"ST-004\",\r\n  \"firstName\": \"Johnx\",\r\n  \"lastName\": \"Doex\",\r\n  \"designation\": \"ADMINISTRATIVE\",\r\n  \"gender\": \"MALE\",\r\n  \"joinedDate\": \"2024-01-15\",\r\n  \"dob\": \"1990-05-10\",\r\n  \"addressLine1\": \"123 Street\",\r\n  \"addressLine2\": \"City Center\",\r\n  \"addressLine3\": \"Colombo\",\r\n  \"addressLine4\": \"Line4\",\r\n  \"addressLine5\": \"Line5\",\r\n  \"contactNo\": \"0711234567\",\r\n  \"email\": \"john.doe@example.com\",\r\n  \"members\": 3,\r\n  \"fieldCode\": \"FI-001\",\r\n  \"vCode\": \"VE-001\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/staff","description":"<p>This endpoint is used to add a new staff to the system. The request must contain staff details in the JSON format. The server will validate the input data.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","staff"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f309c6c1-43f8-42a8-af3b-b64e0b4fddf0"},{"name":"Update Staff","id":"96709f27-dee3-4e46-962f-2f11eb4efac4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"staffId\": \"ST-004\",\r\n  \"firstName\": \"Johnx\",\r\n  \"lastName\": \"Doex\",\r\n  \"designation\": \"ADMINISTRATIVE\",\r\n  \"gender\": \"MALE\",\r\n  \"joinedDate\": \"2024-01-15\",\r\n  \"dob\": \"1990-05-10\",\r\n  \"addressLine1\": \"123 Street\",\r\n  \"addressLine2\": \"City Center\",\r\n  \"addressLine3\": \"Colombo\",\r\n  \"addressLine4\": \"Line4\",\r\n  \"addressLine5\": \"Line5\",\r\n  \"contactNo\": \"0711234567\",\r\n  \"email\": \"john.doe@examplex.com\",\r\n  \"members\": 3,\r\n  \"fieldCode\": \"FI-001\",\r\n  \"vCode\": \"VE-001\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/staff/update","description":"<p>This endpoint is used to update an existing staff's details in the system. The request must contain staff details in the JSON format. The server will validate the input data to ensure it meets the required criteria before updating the staff's information.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","staff","update"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"96709f27-dee3-4e46-962f-2f11eb4efac4"},{"name":"Delete Staff","id":"0ba3ee14-f2c6-467f-a6fa-b580ffca40cd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8080/api/v1/staff?sCode=ST-004","description":"<p>This endpoint is used to delete an existing staff from the system. To use this endpoint, include the staff's ID as a query parameter in the request URL. The server will attempt to delete the staff with the specified ID.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","staff"],"host":["localhost"],"query":[{"key":"sCode","value":"ST-004"}],"variable":[]}},"response":[],"_postman_id":"0ba3ee14-f2c6-467f-a6fa-b580ffca40cd"},{"name":"Get All Staff","id":"c8d668a1-e232-4d23-8060-4c0dcbf20762","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/staff","description":"<p>This endpoint is used to retrieve all staff information from the system.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","staff"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"c8d668a1-e232-4d23-8060-4c0dcbf20762"},{"name":"Get Next Staff Code","id":"994e598a-f834-43ad-a7fd-50e05395b538","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/staff/nextId","description":"<p>This endpoint is used to retrieve next staff code from the system.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","staff","nextId"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"994e598a-f834-43ad-a7fd-50e05395b538"}],"id":"858c5d01-976c-4211-a46a-a39341314183","description":"<p>This is a staff endpoint testing section.</p>\n","_postman_id":"858c5d01-976c-4211-a46a-a39341314183"},{"name":"Vehicle","item":[{"name":"Save Vehicle","id":"07e34f12-6e2a-4314-ade7-660fa3bbaf2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"vehicleCode\": \"VE-006\",\r\n  \"licensePlateNumber\": \"CAX-1236\",\r\n  \"vehicleCategory\": \"CAR\",         \r\n  \"fuelType\": \"PETROL\",             \r\n  \"status\": \"NOT\",               \r\n  \"allocatedStaffId\": \"ST-001\",      \r\n  \"remarks\": \"This is a new vehicle\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/vehicles","description":"<p>This endpoint is used to add a new vehicle to the system. The request must contain vehicle details in the JSON format. The server will validate the input data.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","vehicles"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"07e34f12-6e2a-4314-ade7-660fa3bbaf2f"},{"name":"Update Vehicle","id":"05058f59-f5f1-4b6f-a7bf-8f22efcc39e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"vehicleCode\": \"VE-006\",\r\n  \"licensePlateNumber\": \"CAX-1236\",\r\n  \"vehicleCategory\": \"CAR\",         \r\n  \"fuelType\": \"PETROL\",             \r\n  \"status\": \"NOT\",               \r\n  \"allocatedStaffId\": \"ST-001\",      \r\n  \"remarks\": \"This is a new vehicle Update\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/vehicles/update","description":"<p>This endpoint is used to update an existing vehicle's details in the system. The request must contain vehicle details in the JSON format. The server will validate the input data to ensure it meets the required criteria before updating the vehicle's information.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","vehicles","update"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"05058f59-f5f1-4b6f-a7bf-8f22efcc39e3"},{"name":"Get All vehicles","id":"66bb3f9f-0339-4750-aa67-4a123a07852e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/vehicles","description":"<p>This endpoint is used to retrieve all vehicle information from the system.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","vehicles"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"66bb3f9f-0339-4750-aa67-4a123a07852e"},{"name":"Delete Vehicle","id":"6c66f7ca-ebb8-41f7-b639-a2321fe2b959","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:8080/api/v1/vehicles?vCode=VE-006","description":"<p>This endpoint is used to delete an existing vehicle from the system. To use this endpoint, include the vehicle's ID as a query parameter in the request URL. The server will attempt to delete the vehicle with the specified ID.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","vehicles"],"host":["localhost"],"query":[{"key":"vCode","value":"VE-006"}],"variable":[]}},"response":[],"_postman_id":"6c66f7ca-ebb8-41f7-b639-a2321fe2b959"},{"name":"Get Next Vehicle Code","id":"559ee175-944b-4e66-a2d9-09026b8cf457","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/vehicles/nextVd","description":"<p>This endpoint is used to retrieve next vehicle code from the system.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","vehicles","nextVd"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"559ee175-944b-4e66-a2d9-09026b8cf457"}],"id":"f4fd9aa3-ca6b-49e9-81a9-78210f93ebb9","description":"<p>This is a vehicle endpoint testing section.</p>\n","_postman_id":"f4fd9aa3-ca6b-49e9-81a9-78210f93ebb9"},{"name":"DashBoard","item":[{"name":"Get Vehicle Count","id":"000e77e2-b781-4f1f-a791-fe1f172ed301","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/dash/vehicle_count","description":"<p>This endpoint retrieves the total count of vehicles stored in the database.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","dash","vehicle_count"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"000e77e2-b781-4f1f-a791-fe1f172ed301"},{"name":"Get Equipment Count","id":"8adb750c-d7f9-44c3-981a-ccfdb621301e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/dash/equipment_count","description":"<p>This endpoint retrieves the total count of equipment stored in the database.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","dash","equipment_count"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8adb750c-d7f9-44c3-981a-ccfdb621301e"},{"name":"Get Crop Count","id":"a0922fd1-d357-489d-95fe-632056f51532","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/dash/crop_count","description":"<p>This endpoint retrieves the total count of crop stored in the database.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","dash","crop_count"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"a0922fd1-d357-489d-95fe-632056f51532"},{"name":"Get Field Count","id":"bb583dba-5d57-457d-a2c2-7b67b2f1bcae","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/dash/field_count","description":"<p>This endpoint retrieves the total count of field stored in the database.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","dash","field_count"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bb583dba-5d57-457d-a2c2-7b67b2f1bcae"},{"name":"Get Staff Count","id":"bcfd398c-12cc-4f2f-84ec-66bfc53decfe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/dash/staff_count","description":"<p>This endpoint retrieves the total count of staff stored in the database.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","dash","staff_count"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bcfd398c-12cc-4f2f-84ec-66bfc53decfe"},{"name":"Get User Count","id":"d8835bf2-0742-4cd7-bc41-ae024750abec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/dash/user_count","description":"<p>This endpoint retrieves the total count of user stored in the database.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","dash","user_count"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d8835bf2-0742-4cd7-bc41-ae024750abec"}],"id":"f056fbd6-9434-4b7c-ac97-5da083354b61","description":"<p>This is a dashboard endpoint testing section.</p>\n","_postman_id":"f056fbd6-9434-4b7c-ac97-5da083354b61"},{"name":"Crop Details","item":[{"name":"Save Crop Details","id":"b46f68ad-69dc-40ab-ac9c-286727821778","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"logCode\": \"LOG-001\",\r\n    \"cropCode\": \"CR-001\",\r\n    \"staffId\": \"ST-001\",\r\n    \"quantity\": 50,\r\n    \"membersInStaff\": 10\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/api/v1/crop_detail","description":"<p>This endpoint is used to add a new crop detail to the system. The request must contain crop detail in the JSON format. The server will validate the input data.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","crop_detail"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"b46f68ad-69dc-40ab-ac9c-286727821778"}],"id":"81aaf1d9-eb24-4015-aaef-0a3ef65d5c4b","description":"<p>This is a crop details endpoint testing section.</p>\n","_postman_id":"81aaf1d9-eb24-4015-aaef-0a3ef65d5c4b"},{"name":"Health Check","id":"9568c521-c63f-40f6-8620-35b7f2d565ef","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:8080/api/v1/health","description":"<p>This endpoint verifies the health and availability of the system. It responds with the system's current status, ensuring that the application is running and accessible.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","v1","health"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9568c521-c63f-40f6-8620-35b7f2d565ef"}]}