{"action":"opened","issue":{"url":"https://api.github.com/repos/researchstudio-sat/webofneeds/issues/327","labels_url":"https://api.github.com/repos/researchstudio-sat/webofneeds/issues/327/labels{/name}","comments_url":"https://api.github.com/repos/researchstudio-sat/webofneeds/issues/327/comments","events_url":"https://api.github.com/repos/researchstudio-sat/webofneeds/issues/327/events","html_url":"https://github.com/researchstudio-sat/webofneeds/issues/327","id":97949806,"number":327,"title":"Getting info about node on the owner javascript side","user":{"login":"yanapanchenko","id":7224202,"avatar_url":"https://avatars.githubusercontent.com/u/7224202?v=3","gravatar_id":"","url":"https://api.github.com/users/yanapanchenko","html_url":"https://github.com/yanapanchenko","followers_url":"https://api.github.com/users/yanapanchenko/followers","following_url":"https://api.github.com/users/yanapanchenko/following{/other_user}","gists_url":"https://api.github.com/users/yanapanchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/yanapanchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yanapanchenko/subscriptions","organizations_url":"https://api.github.com/users/yanapanchenko/orgs","repos_url":"https://api.github.com/users/yanapanchenko/repos","events_url":"https://api.github.com/users/yanapanchenko/events{/privacy}","received_events_url":"https://api.github.com/users/yanapanchenko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/researchstudio-sat/webofneeds/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-29T14:32:15Z","updated_at":"2015-07-29T14:32:15Z","closed_at":null,"body":"In owner client (javascript) side, the $location is used to determin node's URI in order to built needs events, etc. (e.g. won-service.js:34). This will result in failures as soon as we deploy node and owner in different containers. Istead, the owner server should provide the REST interface for owner client for getting such info as node URI/URIS and corresponding patterns for building need/event URIs (now the patterns are hardcoded on javascript side). The owner client should get such info from there. The owner server itself knows this info from his configuration files."}}