{"action":"opened","issue":{"url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/issues/238","labels_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/issues/238/labels{/name}","comments_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/issues/238/comments","events_url":"https://api.github.com/repos/stormpath/stormpath-sdk-java/issues/238/events","html_url":"https://github.com/stormpath/stormpath-sdk-java/issues/238","id":96917111,"number":238,"title":"Get a resource based on a href fragment","user":{"login":"omgitstom","id":3199093,"avatar_url":"https://avatars.githubusercontent.com/u/3199093?v=3","gravatar_id":"","url":"https://api.github.com/users/omgitstom","html_url":"https://github.com/omgitstom","followers_url":"https://api.github.com/users/omgitstom/followers","following_url":"https://api.github.com/users/omgitstom/following{/other_user}","gists_url":"https://api.github.com/users/omgitstom/gists{/gist_id}","starred_url":"https://api.github.com/users/omgitstom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omgitstom/subscriptions","organizations_url":"https://api.github.com/users/omgitstom/orgs","repos_url":"https://api.github.com/users/omgitstom/repos","events_url":"https://api.github.com/users/omgitstom/events{/privacy}","received_events_url":"https://api.github.com/users/omgitstom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-23T22:22:01Z","updated_at":"2015-07-23T22:22:01Z","closed_at":null,"body":"For example:\r\n\r\nclient.getDataStore().getResource('/v1/applications/3QIMlJKKN2whGCYzXXw1t8', Application.class);\r\n\r\nThis should resolve to getting the object based on the baseUrl when building the client, similar to making the call to:\r\n\r\nclient.getDataStore().getResource('https://api.stormpath.com/v1/applications/3QIMlJKKN2whGCYzXXw1t8', Application.class);\r\n\r\nor\r\n\r\nclient.getDataStore().getResource('https://enterprise.stormpath.io/v1/applications/3QIMlJKKN2whGCYzXXw1t8', Application.class);"}}