{"info":{"_postman_id":"e76c36bf-5097-4718-a0d5-20c9ba76113d","name":"AgriFund_BlockChain","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"2631439","collectionId":"e76c36bf-5097-4718-a0d5-20c9ba76113d","publishedId":"SW7gSjR2","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-11-28T07:57:34.000Z"},"item":[{"name":"Get all farmer issues","id":"61e92f48-b27a-470c-b53e-4b86a96e930a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://chain-agrifund.mybluemix.net/api/issues","description":"<p>get all farmer issues</p>\n","urlObject":{"protocol":"https","path":["api","issues"],"host":["chain-agrifund","mybluemix","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"61e92f48-b27a-470c-b53e-4b86a96e930a"},{"name":"Create a farmer issue","id":"6dc4479c-f750-422b-9baf-50f0b8e658d3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t \"issue\": \"water problem\",\n\t \"farmer_name\": \"ramya\",\n\t \"description\": \"need money to get a borewell\",\n     \"issue_created_date\": \"11-28-2019\",\n     \"requested_amount\": \"5000\",\n     \"raised_amount\": \"0\",\n     \"problem_faced\": \"problem faced to be updated\",\n     \"solution_proposed\": \"solution to be updated\"\n}"},"url":"https://chain-agrifund.mybluemix.net/api/issues","description":"<p>create a farmer issue </p>\n","urlObject":{"protocol":"https","path":["api","issues"],"host":["chain-agrifund","mybluemix","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"6dc4479c-f750-422b-9baf-50f0b8e658d3"},{"name":"Update a farmer issue","id":"c0888ede-7cc0-4694-9632-eaac575df9c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"farmer_name\": \"ramya\",\n\t\"description\": \"crops description updated\", \n    \"problem_faced\": \"problem faced updated\",\n    \"requested_amount\": \"40000\",\n    \"solution_proposed\": \"solution updated\"          \n}"},"url":"https://chain-agrifund.mybluemix.net/api/issues/ISSUE2","description":"<p>update an existing issue</p>\n","urlObject":{"protocol":"https","path":["api","issues","ISSUE2"],"host":["chain-agrifund","mybluemix","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"c0888ede-7cc0-4694-9632-eaac575df9c6"},{"name":"Close a farmer issue","id":"c3c13e54-3c4c-4319-9973-ac4e1c6fb671","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"farmer_name\" : \"ramya\"\n}"},"url":"https://chain-agrifund.mybluemix.net/api/close/ISSUE2","description":"<p>close a farmer issue</p>\n","urlObject":{"protocol":"https","path":["api","close","ISSUE2"],"host":["chain-agrifund","mybluemix","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"c3c13e54-3c4c-4319-9973-ac4e1c6fb671"},{"name":"Donate amount","id":"3d3261f0-c615-4bd2-b183-fd688d720f06","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t \"donated_amount\": \"300\",\n\t \"donated_date\": \"11-27-2019\",\n\t \"donator_name\": \"nivali\"\n}"},"url":"https://chain-agrifund.mybluemix.net/api/donate/ISSUE8","description":"<p>donate for an issue</p>\n","urlObject":{"protocol":"https","path":["api","donate","ISSUE8"],"host":["chain-agrifund","mybluemix","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"3d3261f0-c615-4bd2-b183-fd688d720f06"},{"name":"Get a farmer issue","id":"5057f9d1-63bc-444e-945b-e92d911051c3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://chain-agrifund.mybluemix.net/api/issues/ISSUE8","description":"<p>get an issue by issueID</p>\n","urlObject":{"protocol":"https","path":["api","issues","ISSUE8"],"host":["chain-agrifund","mybluemix","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"5057f9d1-63bc-444e-945b-e92d911051c3"},{"name":"get issues by farmer name","id":"06a1f4f0-6396-4239-a5e1-66bc7852ad71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://chain-agrifund.mybluemix.net/api/farmers/ramya","description":"<p>get all issues by farmer_name</p>\n","urlObject":{"protocol":"https","path":["api","farmers","ramya"],"host":["chain-agrifund","mybluemix","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"06a1f4f0-6396-4239-a5e1-66bc7852ad71"},{"name":"Register user","id":"6a67cc17-e209-4cd5-bd14-bcce11c79f85","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"user\" : \"ramya\"\n}"},"url":"https://chain-agrifund.mybluemix.net/api/register","description":"<p>Registered users - To register a new user with your CA, the first step in creating a new identity. During registration, an enroll ID and secret are created that can later be used by a node or an organization admin to generate a public and private key to enroll the identity.</p>\n","urlObject":{"protocol":"https","path":["api","register"],"host":["chain-agrifund","mybluemix","net"],"query":[],"variable":[]}},"response":[],"_postman_id":"6a67cc17-e209-4cd5-bd14-bcce11c79f85"}],"event":[{"listen":"prerequest","script":{"id":"740b97c2-c01e-4ae8-b2ca-98fab13f1335","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"3b1cf336-b154-4cab-860f-2dba60080ae1","type":"text/javascript","exec":[""]}}]}