{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/78","labels_url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/78/comments","events_url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/78/events","html_url":"https://github.com/strongloop/loopback-sdk-angular/issues/78","id":43578466,"number":78,"title":"link method not attaching fk to url, failing to create relationship","user":{"login":"BerkeleyTrue","id":6775919,"avatar_url":"https://avatars.githubusercontent.com/u/6775919?v=3","gravatar_id":"","url":"https://api.github.com/users/BerkeleyTrue","html_url":"https://github.com/BerkeleyTrue","followers_url":"https://api.github.com/users/BerkeleyTrue/followers","following_url":"https://api.github.com/users/BerkeleyTrue/following{/other_user}","gists_url":"https://api.github.com/users/BerkeleyTrue/gists{/gist_id}","starred_url":"https://api.github.com/users/BerkeleyTrue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BerkeleyTrue/subscriptions","organizations_url":"https://api.github.com/users/BerkeleyTrue/orgs","repos_url":"https://api.github.com/users/BerkeleyTrue/repos","events_url":"https://api.github.com/users/BerkeleyTrue/events{/privacy}","received_events_url":"https://api.github.com/users/BerkeleyTrue/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"bajtos","id":1140553,"avatar_url":"https://avatars.githubusercontent.com/u/1140553?v=3","gravatar_id":"","url":"https://api.github.com/users/bajtos","html_url":"https://github.com/bajtos","followers_url":"https://api.github.com/users/bajtos/followers","following_url":"https://api.github.com/users/bajtos/following{/other_user}","gists_url":"https://api.github.com/users/bajtos/gists{/gist_id}","starred_url":"https://api.github.com/users/bajtos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajtos/subscriptions","organizations_url":"https://api.github.com/users/bajtos/orgs","repos_url":"https://api.github.com/users/bajtos/repos","events_url":"https://api.github.com/users/bajtos/events{/privacy}","received_events_url":"https://api.github.com/users/bajtos/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2014-09-23T01:11:34Z","updated_at":"2015-03-26T16:39:33Z","closed_at":null,"body":"using loopback-sdk-angular 1.2.2\r\nloopback: 1.10.0\r\n\r\nVendorOrder hasAndBelongsToMany Part and vice versa.\r\n\r\nTrying to build a relationship between two existing models. \r\n\r\n```\r\nreturn VendorOrder.part.link({ id: 'abc', fk: '123' }).$promise;\r\n```\r\n\r\nRequest URL generated: http://localhost:9000/api/vendorOrders/abc/part/rel\r\n\r\nRequest payload: { id: 'abc', fk: '123' }.\r\n\r\nAdding a relationship from loopback-explorer works fine. Seems that $resource is not attaching fk to the url."},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/comments/86610372","html_url":"https://github.com/strongloop/loopback-sdk-angular/issues/78#issuecomment-86610372","issue_url":"https://api.github.com/repos/strongloop/loopback-sdk-angular/issues/78","id":86610372,"user":{"login":"bajtos","id":1140553,"avatar_url":"https://avatars.githubusercontent.com/u/1140553?v=3","gravatar_id":"","url":"https://api.github.com/users/bajtos","html_url":"https://github.com/bajtos","followers_url":"https://api.github.com/users/bajtos/followers","following_url":"https://api.github.com/users/bajtos/following{/other_user}","gists_url":"https://api.github.com/users/bajtos/gists{/gist_id}","starred_url":"https://api.github.com/users/bajtos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bajtos/subscriptions","organizations_url":"https://api.github.com/users/bajtos/orgs","repos_url":"https://api.github.com/users/bajtos/repos","events_url":"https://api.github.com/users/bajtos/events{/privacy}","received_events_url":"https://api.github.com/users/bajtos/received_events","type":"User","site_admin":false},"created_at":"2015-03-26T16:39:33Z","updated_at":"2015-03-26T16:39:33Z","body":"Could you please create a sample app reproducing the issue per https://github.com/strongloop/loopback/wiki/Reporting-issues?"}}