{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-connector-rest/issues/20","repository_url":"https://api.github.com/repos/strongloop/loopback-connector-rest","labels_url":"https://api.github.com/repos/strongloop/loopback-connector-rest/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-connector-rest/issues/20/comments","events_url":"https://api.github.com/repos/strongloop/loopback-connector-rest/issues/20/events","html_url":"https://github.com/strongloop/loopback-connector-rest/issues/20","id":47070179,"number":20,"title":"Support http.source configuration in datasources.json templates.","user":{"login":"ctotheameron","id":3002968,"avatar_url":"https://avatars.githubusercontent.com/u/3002968?v=3","gravatar_id":"","url":"https://api.github.com/users/ctotheameron","html_url":"https://github.com/ctotheameron","followers_url":"https://api.github.com/users/ctotheameron/followers","following_url":"https://api.github.com/users/ctotheameron/following{/other_user}","gists_url":"https://api.github.com/users/ctotheameron/gists{/gist_id}","starred_url":"https://api.github.com/users/ctotheameron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctotheameron/subscriptions","organizations_url":"https://api.github.com/users/ctotheameron/orgs","repos_url":"https://api.github.com/users/ctotheameron/repos","events_url":"https://api.github.com/users/ctotheameron/events{/privacy}","received_events_url":"https://api.github.com/users/ctotheameron/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-10-28T19:28:01Z","updated_at":"2016-05-05T15:49:07Z","closed_at":"2016-05-05T15:49:07Z","body":"Currently when reading the operations[template] from datasources.json, rest-connector.js hardcodes the source value to \"query\". I have many use-cases where I would like to configure the source value of my params without having to write custom code. \r\n\r\nSee:\r\nhttps://github.com/strongloop/loopback-connector-rest/blob/master/lib/rest-connector.js#L56\r\n\r\nMy proposal would be to extend the variable definition syntax to include param source. Something like:\r\n'{x=100:number#path}'\r\n\r\nHappy to take a crack at this and submit a PR if you think it's worth implementing."},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-connector-rest/issues/comments/217191683","html_url":"https://github.com/strongloop/loopback-connector-rest/issues/20#issuecomment-217191683","issue_url":"https://api.github.com/repos/strongloop/loopback-connector-rest/issues/20","id":217191683,"user":{"login":"richardpringle","id":3286504,"avatar_url":"https://avatars.githubusercontent.com/u/3286504?v=3","gravatar_id":"","url":"https://api.github.com/users/richardpringle","html_url":"https://github.com/richardpringle","followers_url":"https://api.github.com/users/richardpringle/followers","following_url":"https://api.github.com/users/richardpringle/following{/other_user}","gists_url":"https://api.github.com/users/richardpringle/gists{/gist_id}","starred_url":"https://api.github.com/users/richardpringle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardpringle/subscriptions","organizations_url":"https://api.github.com/users/richardpringle/orgs","repos_url":"https://api.github.com/users/richardpringle/repos","events_url":"https://api.github.com/users/richardpringle/events{/privacy}","received_events_url":"https://api.github.com/users/richardpringle/received_events","type":"User","site_admin":false},"created_at":"2016-05-05T15:49:07Z","updated_at":"2016-05-05T15:49:07Z","body":"@aroramayur, please ask your question in one of the following locations:\r\n- [Google Groups](https://groups.google.com/forum/#!forum/loopbackjs)\r\n- [StackOverflow](http://stackoverflow.com/questions/tagged/loopbackjs+or+strongloop?sort=newest&pageSize=50)\r\n- [Gitter](https://gitter.im/strongloop/loopback) (supported, but we prefer posting to Google Groups so others may benefit from the discussions)\r\n\r\nHopefully you will actually get an answer when you post in there :smiley:.\r\n\r\n@ctotheameron, I assume that you have figured this out from your last comment. I will now close the issue but please feel free to re-open if need be (just make sure your mention me in a comment so I can tend to it right away). "}}