{"action":"created","issue":{"url":"https://api.github.com/repos/strongloop/loopback-next/issues/846","repository_url":"https://api.github.com/repos/strongloop/loopback-next","labels_url":"https://api.github.com/repos/strongloop/loopback-next/issues/846/labels{/name}","comments_url":"https://api.github.com/repos/strongloop/loopback-next/issues/846/comments","events_url":"https://api.github.com/repos/strongloop/loopback-next/issues/846/events","html_url":"https://github.com/strongloop/loopback-next/issues/846","id":286780982,"number":846,"title":"[Docs] Update documentation and examples to use RestApplication","user":{"login":"kjdelisle","id":2053534,"avatar_url":"https://avatars3.githubusercontent.com/u/2053534?v=4","gravatar_id":"","url":"https://api.github.com/users/kjdelisle","html_url":"https://github.com/kjdelisle","followers_url":"https://api.github.com/users/kjdelisle/followers","following_url":"https://api.github.com/users/kjdelisle/following{/other_user}","gists_url":"https://api.github.com/users/kjdelisle/gists{/gist_id}","starred_url":"https://api.github.com/users/kjdelisle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjdelisle/subscriptions","organizations_url":"https://api.github.com/users/kjdelisle/orgs","repos_url":"https://api.github.com/users/kjdelisle/repos","events_url":"https://api.github.com/users/kjdelisle/events{/privacy}","received_events_url":"https://api.github.com/users/kjdelisle/received_events","type":"User","site_admin":false},"labels":[{"id":751405710,"url":"https://api.github.com/repos/strongloop/loopback-next/labels/Docs","name":"Docs","color":"fcc53a","default":false},{"id":738661801,"url":"https://api.github.com/repos/strongloop/loopback-next/labels/MVP","name":"MVP","color":"5319e7","default":false},{"id":570635296,"url":"https://api.github.com/repos/strongloop/loopback-next/labels/in-progress","name":"in-progress","color":"eeeeee","default":false},{"id":534463338,"url":"https://api.github.com/repos/strongloop/loopback-next/labels/needs-doc","name":"needs-doc","color":"e99695","default":false},{"id":640670997,"url":"https://api.github.com/repos/strongloop/loopback-next/labels/team-apex","name":"team-apex","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":{"login":"shimks","id":18518689,"avatar_url":"https://avatars2.githubusercontent.com/u/18518689?v=4","gravatar_id":"","url":"https://api.github.com/users/shimks","html_url":"https://github.com/shimks","followers_url":"https://api.github.com/users/shimks/followers","following_url":"https://api.github.com/users/shimks/following{/other_user}","gists_url":"https://api.github.com/users/shimks/gists{/gist_id}","starred_url":"https://api.github.com/users/shimks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimks/subscriptions","organizations_url":"https://api.github.com/users/shimks/orgs","repos_url":"https://api.github.com/users/shimks/repos","events_url":"https://api.github.com/users/shimks/events{/privacy}","received_events_url":"https://api.github.com/users/shimks/received_events","type":"User","site_admin":false},"assignees":[{"login":"shimks","id":18518689,"avatar_url":"https://avatars2.githubusercontent.com/u/18518689?v=4","gravatar_id":"","url":"https://api.github.com/users/shimks","html_url":"https://github.com/shimks","followers_url":"https://api.github.com/users/shimks/followers","following_url":"https://api.github.com/users/shimks/following{/other_user}","gists_url":"https://api.github.com/users/shimks/gists{/gist_id}","starred_url":"https://api.github.com/users/shimks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimks/subscriptions","organizations_url":"https://api.github.com/users/shimks/orgs","repos_url":"https://api.github.com/users/shimks/repos","events_url":"https://api.github.com/users/shimks/events{/privacy}","received_events_url":"https://api.github.com/users/shimks/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-01-08T15:27:35Z","updated_at":"2018-02-06T17:01:32Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## Overview\r\nRewrite the existing examples to leverage the new `RestApplication` class, which should simplify those examples nicely.\r\n\r\n## Acceptance Criteria\r\n- [x] Update all loopback.io examples of single-server usage with `RestApplication`\r\n- [x] Update the `loopback/example-getting-started` application to use `RestApplication`"},"comment":{"url":"https://api.github.com/repos/strongloop/loopback-next/issues/comments/363491258","html_url":"https://github.com/strongloop/loopback-next/issues/846#issuecomment-363491258","issue_url":"https://api.github.com/repos/strongloop/loopback-next/issues/846","id":363491258,"user":{"login":"shimks","id":18518689,"avatar_url":"https://avatars2.githubusercontent.com/u/18518689?v=4","gravatar_id":"","url":"https://api.github.com/users/shimks","html_url":"https://github.com/shimks","followers_url":"https://api.github.com/users/shimks/followers","following_url":"https://api.github.com/users/shimks/following{/other_user}","gists_url":"https://api.github.com/users/shimks/gists{/gist_id}","starred_url":"https://api.github.com/users/shimks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimks/subscriptions","organizations_url":"https://api.github.com/users/shimks/orgs","repos_url":"https://api.github.com/users/shimks/repos","events_url":"https://api.github.com/users/shimks/events{/privacy}","received_events_url":"https://api.github.com/users/shimks/received_events","type":"User","site_admin":false},"created_at":"2018-02-06T17:01:32Z","updated_at":"2018-02-06T17:01:32Z","author_association":"CONTRIBUTOR","body":"While I was looking through the docs to find `RestApplication` configs to move, I noticed that I wasn't able to set up any server-level bindings in the constructor. For example, I'm not able to register routes through `app.route(new Route(...))` since application-level context doesn't seem to inherit from server-level context.\r\n\r\nDoes this mean potentially we should discuss whether `RestApplication` should merge the application-level and server-level contexts together?"}}
{"actor":{"display_login":"shimks"}}