{"action":"created","issue":{"url":"https://api.github.com/repos/metamaps/metamaps/issues/532","repository_url":"https://api.github.com/repos/metamaps/metamaps","labels_url":"https://api.github.com/repos/metamaps/metamaps/issues/532/labels{/name}","comments_url":"https://api.github.com/repos/metamaps/metamaps/issues/532/comments","events_url":"https://api.github.com/repos/metamaps/metamaps/issues/532/events","html_url":"https://github.com/metamaps/metamaps/issues/532","id":145455459,"number":532,"title":"get list of public maps via API","user":{"login":"harlantwood","id":38769,"avatar_url":"https://avatars.githubusercontent.com/u/38769?v=3","gravatar_id":"","url":"https://api.github.com/users/harlantwood","html_url":"https://github.com/harlantwood","followers_url":"https://api.github.com/users/harlantwood/followers","following_url":"https://api.github.com/users/harlantwood/following{/other_user}","gists_url":"https://api.github.com/users/harlantwood/gists{/gist_id}","starred_url":"https://api.github.com/users/harlantwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harlantwood/subscriptions","organizations_url":"https://api.github.com/users/harlantwood/orgs","repos_url":"https://api.github.com/users/harlantwood/repos","events_url":"https://api.github.com/users/harlantwood/events{/privacy}","received_events_url":"https://api.github.com/users/harlantwood/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/metamaps/metamaps/milestones/18","html_url":"https://github.com/metamaps/metamaps/milestones/Someday","labels_url":"https://api.github.com/repos/metamaps/metamaps/milestones/18/labels","id":1382577,"number":18,"title":"Someday","description":"Issues that are not on our short term roadmap","creator":{"login":"devvmh","id":1393708,"avatar_url":"https://avatars.githubusercontent.com/u/1393708?v=3","gravatar_id":"","url":"https://api.github.com/users/devvmh","html_url":"https://github.com/devvmh","followers_url":"https://api.github.com/users/devvmh/followers","following_url":"https://api.github.com/users/devvmh/following{/other_user}","gists_url":"https://api.github.com/users/devvmh/gists{/gist_id}","starred_url":"https://api.github.com/users/devvmh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devvmh/subscriptions","organizations_url":"https://api.github.com/users/devvmh/orgs","repos_url":"https://api.github.com/users/devvmh/repos","events_url":"https://api.github.com/users/devvmh/events{/privacy}","received_events_url":"https://api.github.com/users/devvmh/received_events","type":"User","site_admin":false},"open_issues":59,"closed_issues":0,"state":"open","created_at":"2015-10-29T02:15:20Z","updated_at":"2016-09-22T05:06:29Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-04-03T05:12:33Z","updated_at":"2016-09-23T02:36:39Z","closed_at":null,"body":"I'd like to get a list of all public maps via the API.  I propose a route like:\r\n\r\n```\r\nGET   /api/v1/maps                       api/maps#index {:format=>:json}\r\n```\r\n\r\nTo begin with, this would list all public maps.  Later, we could add features like pagination, or all maps a user has access to, etc.\r\n\r\nProposed format (example), straight from the API's Map#show, with a link to each map added as both `url` and `api_url`:\r\n\r\n```json\r\n[\r\n    {\r\n      \"id\": 3,\r\n      \"url\": \"https://metamaps.cc/maps/3\",\r\n      \"api_url\": \"https://metamaps.cc/api/v1/maps/3\",\r\n      \"name\": \"...\",\r\n      \"desc\": \"...\",\r\n      \"permission\": \"commons\",\r\n      \"screenshot\": \"...\",\r\n      \"created_at\": \"2014-01-29T04:56:53.972Z\",\r\n      \"updated_at\": \"2015-11-04T21:50:58.254Z\",\r\n      \"topic_ids\": [308, 1354, 1355, 74, 282, 49, 6, 53, 283, 284, 285, 288, 289, 291, 310, 425],\r\n      \"synapse_ids\": [10, 1053, 1054, 1055, 1057, 1058, 1059, 1060, 1061, 1062, 1063, 1067, 1085],\r\n      \"mapping_ids\": [600, 2602, 2603, 182, 486, 125, 181, 301, 487, 488, 489, 493, 494, 497, 602, 654, 28, 2604, 2520, 2521, 2522, 2524, 2525, 2526, 2527, 2528, 2529, 2530, 2534],\r\n      \"contributor_ids\": [110237153, 1000497548, 957904360, 1000497524, 555629996, 1000497529]\r\n    }\r\n  ]\r\n```"},"comment":{"url":"https://api.github.com/repos/metamaps/metamaps/issues/comments/249087206","html_url":"https://github.com/metamaps/metamaps/issues/532#issuecomment-249087206","issue_url":"https://api.github.com/repos/metamaps/metamaps/issues/532","id":249087206,"user":{"login":"Connoropolous","id":1409121,"avatar_url":"https://avatars.githubusercontent.com/u/1409121?v=3","gravatar_id":"","url":"https://api.github.com/users/Connoropolous","html_url":"https://github.com/Connoropolous","followers_url":"https://api.github.com/users/Connoropolous/followers","following_url":"https://api.github.com/users/Connoropolous/following{/other_user}","gists_url":"https://api.github.com/users/Connoropolous/gists{/gist_id}","starred_url":"https://api.github.com/users/Connoropolous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Connoropolous/subscriptions","organizations_url":"https://api.github.com/users/Connoropolous/orgs","repos_url":"https://api.github.com/users/Connoropolous/repos","events_url":"https://api.github.com/users/Connoropolous/events{/privacy}","received_events_url":"https://api.github.com/users/Connoropolous/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T02:36:39Z","updated_at":"2016-09-23T02:36:39Z","body":"hey @harlantwood this is happening just as a byproduct of Devins work on the api! \r\n\r\n/api/v2/maps will return public results, or whatever maps you can see if you make an authed call\r\n\r\nthis is not live on metamaps.cc yet, but it's in our main branch, and thus, will be on the next deploy"}}
{"actor":{"display_login":"Connoropolous"}}