{"action":"created","issue":{"url":"https://api.github.com/repos/CharismaticLupine/CharismaticLupine/issues/50","labels_url":"https://api.github.com/repos/CharismaticLupine/CharismaticLupine/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/CharismaticLupine/CharismaticLupine/issues/50/comments","events_url":"https://api.github.com/repos/CharismaticLupine/CharismaticLupine/issues/50/events","html_url":"https://github.com/CharismaticLupine/CharismaticLupine/pull/50","id":101130549,"number":50,"title":"set up GET /physical/id/:id to return related content, using model registry","user":{"login":"jameslaneconkling","id":4389360,"avatar_url":"https://avatars.githubusercontent.com/u/4389360?v=3","gravatar_id":"","url":"https://api.github.com/users/jameslaneconkling","html_url":"https://github.com/jameslaneconkling","followers_url":"https://api.github.com/users/jameslaneconkling/followers","following_url":"https://api.github.com/users/jameslaneconkling/following{/other_user}","gists_url":"https://api.github.com/users/jameslaneconkling/gists{/gist_id}","starred_url":"https://api.github.com/users/jameslaneconkling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jameslaneconkling/subscriptions","organizations_url":"https://api.github.com/users/jameslaneconkling/orgs","repos_url":"https://api.github.com/users/jameslaneconkling/repos","events_url":"https://api.github.com/users/jameslaneconkling/events{/privacy}","received_events_url":"https://api.github.com/users/jameslaneconkling/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/CharismaticLupine/CharismaticLupine/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-15T01:47:44Z","updated_at":"2015-08-16T16:14:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CharismaticLupine/CharismaticLupine/pulls/50","html_url":"https://github.com/CharismaticLupine/CharismaticLupine/pull/50","diff_url":"https://github.com/CharismaticLupine/CharismaticLupine/pull/50.diff","patch_url":"https://github.com/CharismaticLupine/CharismaticLupine/pull/50.patch"},"body":"NOTE: this changes the way models are required, e.g.\r\n```javascript\r\nrequire('./physical')\r\n// not\r\nvar Physical = require('./physical')\r\n```\r\n\r\nAlso note, @timothyquach and @Arahir routes now return geoJSON from the GET /physical routes.  So, find the returned data in `data.features`, instead of (as it used to be, I think) `data.physicals`.\r\n\r\nAssociations/related content is only returned for the /physical/id/:id route.  I'll try to get it working for the other routes as well.  (though I'm not 100% that it will be possible to both parse db data into geoJSON with PostGIS *and* use Bookshelf models, with the latter required to return associations)"},"comment":{"url":"https://api.github.com/repos/CharismaticLupine/CharismaticLupine/issues/comments/131577742","html_url":"https://github.com/CharismaticLupine/CharismaticLupine/pull/50#issuecomment-131577742","issue_url":"https://api.github.com/repos/CharismaticLupine/CharismaticLupine/issues/50","id":131577742,"user":{"login":"RRDuke","id":9452351,"avatar_url":"https://avatars.githubusercontent.com/u/9452351?v=3","gravatar_id":"","url":"https://api.github.com/users/RRDuke","html_url":"https://github.com/RRDuke","followers_url":"https://api.github.com/users/RRDuke/followers","following_url":"https://api.github.com/users/RRDuke/following{/other_user}","gists_url":"https://api.github.com/users/RRDuke/gists{/gist_id}","starred_url":"https://api.github.com/users/RRDuke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RRDuke/subscriptions","organizations_url":"https://api.github.com/users/RRDuke/orgs","repos_url":"https://api.github.com/users/RRDuke/repos","events_url":"https://api.github.com/users/RRDuke/events{/privacy}","received_events_url":"https://api.github.com/users/RRDuke/received_events","type":"User","site_admin":false},"created_at":"2015-08-16T16:14:54Z","updated_at":"2015-08-16T16:14:54Z","body":"awesome :+1: "}}