{"action":"created","issue":{"url":"https://api.github.com/repos/Starcounter/Home/issues/190","repository_url":"https://api.github.com/repos/Starcounter/Home","labels_url":"https://api.github.com/repos/Starcounter/Home/issues/190/labels{/name}","comments_url":"https://api.github.com/repos/Starcounter/Home/issues/190/comments","events_url":"https://api.github.com/repos/Starcounter/Home/issues/190/events","html_url":"https://github.com/Starcounter/Home/issues/190","id":246381289,"number":190,"title":"Proposal: Self.GET(\"/people/person/{?}\", person)","user":{"login":"warpech","id":566463,"avatar_url":"https://avatars0.githubusercontent.com/u/566463?v=4","gravatar_id":"","url":"https://api.github.com/users/warpech","html_url":"https://github.com/warpech","followers_url":"https://api.github.com/users/warpech/followers","following_url":"https://api.github.com/users/warpech/following{/other_user}","gists_url":"https://api.github.com/users/warpech/gists{/gist_id}","starred_url":"https://api.github.com/users/warpech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warpech/subscriptions","organizations_url":"https://api.github.com/users/warpech/orgs","repos_url":"https://api.github.com/users/warpech/repos","events_url":"https://api.github.com/users/warpech/events{/privacy}","received_events_url":"https://api.github.com/users/warpech/received_events","type":"User","site_admin":false},"labels":[{"id":676493031,"url":"https://api.github.com/repos/Starcounter/Home/labels/nice%20to%20have","name":"nice to have","color":"ffd8b1","default":false},{"id":568581301,"url":"https://api.github.com/repos/Starcounter/Home/labels/question","name":"question","color":"ffff00","default":true}],"state":"open","locked":false,"assignee":{"login":"alemoi","id":208134,"avatar_url":"https://avatars1.githubusercontent.com/u/208134?v=4","gravatar_id":"","url":"https://api.github.com/users/alemoi","html_url":"https://github.com/alemoi","followers_url":"https://api.github.com/users/alemoi/followers","following_url":"https://api.github.com/users/alemoi/following{/other_user}","gists_url":"https://api.github.com/users/alemoi/gists{/gist_id}","starred_url":"https://api.github.com/users/alemoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alemoi/subscriptions","organizations_url":"https://api.github.com/users/alemoi/orgs","repos_url":"https://api.github.com/users/alemoi/repos","events_url":"https://api.github.com/users/alemoi/events{/privacy}","received_events_url":"https://api.github.com/users/alemoi/received_events","type":"User","site_admin":false},"assignees":[{"login":"alemoi","id":208134,"avatar_url":"https://avatars1.githubusercontent.com/u/208134?v=4","gravatar_id":"","url":"https://api.github.com/users/alemoi","html_url":"https://github.com/alemoi","followers_url":"https://api.github.com/users/alemoi/followers","following_url":"https://api.github.com/users/alemoi/following{/other_user}","gists_url":"https://api.github.com/users/alemoi/gists{/gist_id}","starred_url":"https://api.github.com/users/alemoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alemoi/subscriptions","organizations_url":"https://api.github.com/users/alemoi/orgs","repos_url":"https://api.github.com/users/alemoi/repos","events_url":"https://api.github.com/users/alemoi/events{/privacy}","received_events_url":"https://api.github.com/users/alemoi/received_events","type":"User","site_admin":false}],"milestone":null,"comments":15,"created_at":"2017-07-28T15:27:47Z","updated_at":"2017-11-30T15:14:26Z","closed_at":null,"author_association":"OWNER","body":"Right now it is hard to do a `Self.GET` to an object that you have, because you need to serialize the objects identifier:\r\n\r\n```c#\r\nSelf.GET(\"/people/person/\" + person.GetObjectID()\");\r\n```\r\n\r\nIt gets nicer with a string expression, but still seems redundant work:\r\n\r\n```c#\r\nSelf.GET($\"/people/person/{person.GetObjectID()}\");\r\n```\r\n\r\n## Proposal\r\n\r\nIt would be nice if `Self.GET` supported similar syntax as `Db.SQL` has for queries.\r\n\r\n```java\r\nSelf.GET(\"/people/person/{?}\", person);\r\n```\r\n\r\nBenefits:\r\n\r\n- consistent: first param equals the string in the first param of `Handle.GET`\r\n- convenient: if you have multiple `{?}` in your URI, provide multiple params to `Self.GET` overload.\r\n- maybe more performant: do we have to serialize/deserialize objects to ids when passing them in `Blender.MapUri`?"},"comment":{"url":"https://api.github.com/repos/Starcounter/Home/issues/comments/348217597","html_url":"https://github.com/Starcounter/Home/issues/190#issuecomment-348217597","issue_url":"https://api.github.com/repos/Starcounter/Home/issues/190","id":348217597,"user":{"login":"alemoi","id":208134,"avatar_url":"https://avatars1.githubusercontent.com/u/208134?v=4","gravatar_id":"","url":"https://api.github.com/users/alemoi","html_url":"https://github.com/alemoi","followers_url":"https://api.github.com/users/alemoi/followers","following_url":"https://api.github.com/users/alemoi/following{/other_user}","gists_url":"https://api.github.com/users/alemoi/gists{/gist_id}","starred_url":"https://api.github.com/users/alemoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alemoi/subscriptions","organizations_url":"https://api.github.com/users/alemoi/orgs","repos_url":"https://api.github.com/users/alemoi/repos","events_url":"https://api.github.com/users/alemoi/events{/privacy}","received_events_url":"https://api.github.com/users/alemoi/received_events","type":"User","site_admin":false},"created_at":"2017-11-30T15:14:26Z","updated_at":"2017-11-30T15:14:26Z","author_association":"NONE","body":"@miyconst should we close this issue?"}}
{"actor":{"display_login":"alemoi"}}