{"action":"created","issue":{"url":"https://api.github.com/repos/eaciit/mq/issues/21","labels_url":"https://api.github.com/repos/eaciit/mq/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/eaciit/mq/issues/21/comments","events_url":"https://api.github.com/repos/eaciit/mq/issues/21/events","html_url":"https://github.com/eaciit/mq/issues/21","id":88874448,"number":21,"title":"Create REST API GetToken","user":{"login":"juragan360","id":6031344,"avatar_url":"https://avatars.githubusercontent.com/u/6031344?v=3","gravatar_id":"","url":"https://api.github.com/users/juragan360","html_url":"https://github.com/juragan360","followers_url":"https://api.github.com/users/juragan360/followers","following_url":"https://api.github.com/users/juragan360/following{/other_user}","gists_url":"https://api.github.com/users/juragan360/gists{/gist_id}","starred_url":"https://api.github.com/users/juragan360/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juragan360/subscriptions","organizations_url":"https://api.github.com/users/juragan360/orgs","repos_url":"https://api.github.com/users/juragan360/repos","events_url":"https://api.github.com/users/juragan360/events{/privacy}","received_events_url":"https://api.github.com/users/juragan360/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-17T00:27:58Z","updated_at":"2015-06-17T03:38:26Z","closed_at":null,"body":"Proto /api/gettoken?username=xxx&password=yyyy\r\n\r\nreturn  \r\n{data:{token:\"32 char tokenkey\",valid:datetime},result:\"ok\",message:\"always blank except if there would be error\"}\r\n\r\nList of token need to be saved and will be used globally\r\n\r\n- A token will be generated for valid user, if there is no valid token existed before\r\n- A new created token will have 15 mins validity (or whatever time configured). \r\n- After exceeds validity - period, token will be invalid and need to be marked as expired and cant be used for further operation.\r\n- When an operation is invoked, a new validity period will be assigned to token. New validity period will be time of execution + validity period"},"comment":{"url":"https://api.github.com/repos/eaciit/mq/issues/comments/112641688","html_url":"https://github.com/eaciit/mq/issues/21#issuecomment-112641688","issue_url":"https://api.github.com/repos/eaciit/mq/issues/21","id":112641688,"user":{"login":"sugab","id":6898295,"avatar_url":"https://avatars.githubusercontent.com/u/6898295?v=3","gravatar_id":"","url":"https://api.github.com/users/sugab","html_url":"https://github.com/sugab","followers_url":"https://api.github.com/users/sugab/followers","following_url":"https://api.github.com/users/sugab/following{/other_user}","gists_url":"https://api.github.com/users/sugab/gists{/gist_id}","starred_url":"https://api.github.com/users/sugab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sugab/subscriptions","organizations_url":"https://api.github.com/users/sugab/orgs","repos_url":"https://api.github.com/users/sugab/repos","events_url":"https://api.github.com/users/sugab/events{/privacy}","received_events_url":"https://api.github.com/users/sugab/received_events","type":"User","site_admin":false},"created_at":"2015-06-17T03:38:26Z","updated_at":"2015-06-17T03:38:26Z","body":"sir sorry but i'm a bit confused what is token means...\r\nand should i create new server called mqapi.go or i combine with mqmonitor.go server"}}