{"action":"created","issue":{"url":"https://api.github.com/repos/hyperledger/fabric/issues/1432","repository_url":"https://api.github.com/repos/hyperledger/fabric","labels_url":"https://api.github.com/repos/hyperledger/fabric/issues/1432/labels{/name}","comments_url":"https://api.github.com/repos/hyperledger/fabric/issues/1432/comments","events_url":"https://api.github.com/repos/hyperledger/fabric/issues/1432/events","html_url":"https://github.com/hyperledger/fabric/issues/1432","id":154086978,"number":1432,"title":"Need An API to Determine What Level of Code The Fabric is Running","user":{"login":"bmos299","id":6989387,"avatar_url":"https://avatars.githubusercontent.com/u/6989387?v=3","gravatar_id":"","url":"https://api.github.com/users/bmos299","html_url":"https://github.com/bmos299","followers_url":"https://api.github.com/users/bmos299/followers","following_url":"https://api.github.com/users/bmos299/following{/other_user}","gists_url":"https://api.github.com/users/bmos299/gists{/gist_id}","starred_url":"https://api.github.com/users/bmos299/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmos299/subscriptions","organizations_url":"https://api.github.com/users/bmos299/orgs","repos_url":"https://api.github.com/users/bmos299/repos","events_url":"https://api.github.com/users/bmos299/events{/privacy}","received_events_url":"https://api.github.com/users/bmos299/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-10T19:27:37Z","updated_at":"2016-05-17T18:44:42Z","closed_at":null,"body":"I need some API (REST and/or GRPC) to determine what level of code my peer is running.\r\n\r\nFor example,\r\n\r\nThere is a network api:\r\nGET host:port/network/peers\r\n\r\nI think we need new api for admin that we can continue to build on.  For example, this first call could be:\r\nGET host:port/admin/commit\r\n\r\nThis would return the code level for all peers.  This will allow us to easily determine the code level and if there is a code level mismatch.  Here is an example,\r\n{\r\n    \"peers\": [\r\n        {\r\n            \"ID\": {\r\n                \"name\": \"vp1\"\r\n            },\r\n            \"commit\": \" 2c3af309a711d3d83f6687e1722652eba5e1de81\",\r\n        },\r\n        {\r\n               \"ID\": {\r\n                \"name\": \"vp2\"\r\n            },\r\n            \"commit\": \" 2c3af309a711d3d83f6687e1722652eba5e1de81\",\r\n        }\r\n    ]\r\n}\r\n        "},"comment":{"url":"https://api.github.com/repos/hyperledger/fabric/issues/comments/219814713","html_url":"https://github.com/hyperledger/fabric/issues/1432#issuecomment-219814713","issue_url":"https://api.github.com/repos/hyperledger/fabric/issues/1432","id":219814713,"user":{"login":"bmos299","id":6989387,"avatar_url":"https://avatars.githubusercontent.com/u/6989387?v=3","gravatar_id":"","url":"https://api.github.com/users/bmos299","html_url":"https://github.com/bmos299","followers_url":"https://api.github.com/users/bmos299/followers","following_url":"https://api.github.com/users/bmos299/following{/other_user}","gists_url":"https://api.github.com/users/bmos299/gists{/gist_id}","starred_url":"https://api.github.com/users/bmos299/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmos299/subscriptions","organizations_url":"https://api.github.com/users/bmos299/orgs","repos_url":"https://api.github.com/users/bmos299/repos","events_url":"https://api.github.com/users/bmos299/events{/privacy}","received_events_url":"https://api.github.com/users/bmos299/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T18:44:42Z","updated_at":"2016-05-17T18:44:42Z","body":"@christo4ferris absolutely.   I definitely see this being much more extensive than this issue.  It is much more of a detailed requirement.   For the short term, I am just hoping to have some ability to know what version of the fabric I'm running while design for a more eloquent solution is developed. "}}