{"action":"created","issue":{"url":"https://api.github.com/repos/Ragil/Communicate-Indonesia/issues/1","labels_url":"https://api.github.com/repos/Ragil/Communicate-Indonesia/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/Ragil/Communicate-Indonesia/issues/1/comments","events_url":"https://api.github.com/repos/Ragil/Communicate-Indonesia/issues/1/events","html_url":"https://github.com/Ragil/Communicate-Indonesia/issues/1","id":97728490,"number":1,"title":"User API - insert and retrieve users","user":{"login":"Ragil","id":369286,"avatar_url":"https://avatars.githubusercontent.com/u/369286?v=3","gravatar_id":"","url":"https://api.github.com/users/Ragil","html_url":"https://github.com/Ragil","followers_url":"https://api.github.com/users/Ragil/followers","following_url":"https://api.github.com/users/Ragil/following{/other_user}","gists_url":"https://api.github.com/users/Ragil/gists{/gist_id}","starred_url":"https://api.github.com/users/Ragil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ragil/subscriptions","organizations_url":"https://api.github.com/users/Ragil/orgs","repos_url":"https://api.github.com/users/Ragil/repos","events_url":"https://api.github.com/users/Ragil/events{/privacy}","received_events_url":"https://api.github.com/users/Ragil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-07-28T15:02:22Z","updated_at":"2015-07-30T00:31:57Z","closed_at":null,"body":"The api should speak json and should be appengine admin secured.\r\n\r\nStoring a user:\r\n```\r\nlocation : /v1/users\r\nmethod : put\r\ndata : {\r\n  \"role\" : (required, enum str : [\"hutan_biru\", \"farmer\", ...]),\r\n  \"phone_number\": (required, str),\r\n  \"first_name\": (required, str),\r\n  \"last_name\": (optional, str),\r\n}\r\n```\r\n\r\nRetrieving a user:\r\n```\r\nlocation : /v1/users/<userid>\r\nmethod : get\r\nresponse : {\r\n  \"id\": str,\r\n  \"role\": (str)\r\n  \"phone_number\": (str),\r\n  \"first_name\": (str),\r\n  \"last_name\": (str, null if not available),\r\n  \"ts_created\" : (epoch in ms),\r\n  \"ts_updated\" : (epoch in ms)\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/Ragil/Communicate-Indonesia/issues/comments/126139340","html_url":"https://github.com/Ragil/Communicate-Indonesia/issues/1#issuecomment-126139340","issue_url":"https://api.github.com/repos/Ragil/Communicate-Indonesia/issues/1","id":126139340,"user":{"login":"Ragil","id":369286,"avatar_url":"https://avatars.githubusercontent.com/u/369286?v=3","gravatar_id":"","url":"https://api.github.com/users/Ragil","html_url":"https://github.com/Ragil","followers_url":"https://api.github.com/users/Ragil/followers","following_url":"https://api.github.com/users/Ragil/following{/other_user}","gists_url":"https://api.github.com/users/Ragil/gists{/gist_id}","starred_url":"https://api.github.com/users/Ragil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ragil/subscriptions","organizations_url":"https://api.github.com/users/Ragil/orgs","repos_url":"https://api.github.com/users/Ragil/repos","events_url":"https://api.github.com/users/Ragil/events{/privacy}","received_events_url":"https://api.github.com/users/Ragil/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T00:31:57Z","updated_at":"2015-07-30T00:31:57Z","body":"Yes but use ndb because it adds a lot of nice optimizations and sane caching\r\n\r\nhttps://cloud.google.com/appengine/docs/python/ndb/"}}