{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/isaacloud/local-api/pulls/1","id":43124421,"html_url":"https://github.com/isaacloud/local-api/pull/1","diff_url":"https://github.com/isaacloud/local-api/pull/1.diff","patch_url":"https://github.com/isaacloud/local-api/pull/1.patch","issue_url":"https://api.github.com/repos/isaacloud/local-api/issues/1","number":1,"state":"closed","locked":false,"title":"Take into account baseUri configuration with paths in RAML","user":{"login":"bjfletcher","id":733849,"avatar_url":"https://avatars.githubusercontent.com/u/733849?v=3","gravatar_id":"","url":"https://api.github.com/users/bjfletcher","html_url":"https://github.com/bjfletcher","followers_url":"https://api.github.com/users/bjfletcher/followers","following_url":"https://api.github.com/users/bjfletcher/following{/other_user}","gists_url":"https://api.github.com/users/bjfletcher/gists{/gist_id}","starred_url":"https://api.github.com/users/bjfletcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjfletcher/subscriptions","organizations_url":"https://api.github.com/users/bjfletcher/orgs","repos_url":"https://api.github.com/users/bjfletcher/repos","events_url":"https://api.github.com/users/bjfletcher/events{/privacy}","received_events_url":"https://api.github.com/users/bjfletcher/received_events","type":"User","site_admin":false},"body":"### Background to this pull request\r\n\r\nIf `baseUri` is `https://example.com` or `https://example.com` then the RAML paths will work. However, if the `baseUri` is changed to `https://example.com/api/v3` for example, then the RAML paths won't work. Two ways to fix this:\r\n\r\n1. update all paths to start with `api/v3`; or\r\n2. fix `local-api` to prefix path in `baseUri` to paths.\r\n\r\nWith this pull request, `local-api` will then behave as per the specification and other RAML mocking services like [Osprey](https://github.com/mulesoft-labs/osprey-mock-service).\r\n\r\nA bonus this pull request has is that it supports the `version` substitution too.","created_at":"2015-08-23T16:52:44Z","updated_at":"2015-08-26T09:07:55Z","closed_at":"2015-08-26T09:07:55Z","merged_at":"2015-08-26T09:07:55Z","merge_commit_sha":"1c0fc66ed8c23d08649a7046a7a8d18fd6e7220d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/isaacloud/local-api/pulls/1/commits","review_comments_url":"https://api.github.com/repos/isaacloud/local-api/pulls/1/comments","review_comment_url":"https://api.github.com/repos/isaacloud/local-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/isaacloud/local-api/issues/1/comments","statuses_url":"https://api.github.com/repos/isaacloud/local-api/statuses/90247bb773a1acfa05a82400c97f7af4038b7d11","head":{"label":"bjfletcher:base-uri-support","ref":"base-uri-support","sha":"90247bb773a1acfa05a82400c97f7af4038b7d11","user":{"login":"bjfletcher","id":733849,"avatar_url":"https://avatars.githubusercontent.com/u/733849?v=3","gravatar_id":"","url":"https://api.github.com/users/bjfletcher","html_url":"https://github.com/bjfletcher","followers_url":"https://api.github.com/users/bjfletcher/followers","following_url":"https://api.github.com/users/bjfletcher/following{/other_user}","gists_url":"https://api.github.com/users/bjfletcher/gists{/gist_id}","starred_url":"https://api.github.com/users/bjfletcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjfletcher/subscriptions","organizations_url":"https://api.github.com/users/bjfletcher/orgs","repos_url":"https://api.github.com/users/bjfletcher/repos","events_url":"https://api.github.com/users/bjfletcher/events{/privacy}","received_events_url":"https://api.github.com/users/bjfletcher/received_events","type":"User","site_admin":false},"repo":{"id":41258017,"name":"local-api","full_name":"bjfletcher/local-api","owner":{"login":"bjfletcher","id":733849,"avatar_url":"https://avatars.githubusercontent.com/u/733849?v=3","gravatar_id":"","url":"https://api.github.com/users/bjfletcher","html_url":"https://github.com/bjfletcher","followers_url":"https://api.github.com/users/bjfletcher/followers","following_url":"https://api.github.com/users/bjfletcher/following{/other_user}","gists_url":"https://api.github.com/users/bjfletcher/gists{/gist_id}","starred_url":"https://api.github.com/users/bjfletcher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjfletcher/subscriptions","organizations_url":"https://api.github.com/users/bjfletcher/orgs","repos_url":"https://api.github.com/users/bjfletcher/repos","events_url":"https://api.github.com/users/bjfletcher/events{/privacy}","received_events_url":"https://api.github.com/users/bjfletcher/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bjfletcher/local-api","description":"LocalAPI application is based on Node.js library and allows for running a fully functional API on the basis of definitions included in a raml file. The path to the raml file is passed as a parameter when the application is starting. LocalAPI also allows for simulating the basic functionality of the OAuth library.","fork":true,"url":"https://api.github.com/repos/bjfletcher/local-api","forks_url":"https://api.github.com/repos/bjfletcher/local-api/forks","keys_url":"https://api.github.com/repos/bjfletcher/local-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bjfletcher/local-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bjfletcher/local-api/teams","hooks_url":"https://api.github.com/repos/bjfletcher/local-api/hooks","issue_events_url":"https://api.github.com/repos/bjfletcher/local-api/issues/events{/number}","events_url":"https://api.github.com/repos/bjfletcher/local-api/events","assignees_url":"https://api.github.com/repos/bjfletcher/local-api/assignees{/user}","branches_url":"https://api.github.com/repos/bjfletcher/local-api/branches{/branch}","tags_url":"https://api.github.com/repos/bjfletcher/local-api/tags","blobs_url":"https://api.github.com/repos/bjfletcher/local-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bjfletcher/local-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bjfletcher/local-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/bjfletcher/local-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bjfletcher/local-api/statuses/{sha}","languages_url":"https://api.github.com/repos/bjfletcher/local-api/languages","stargazers_url":"https://api.github.com/repos/bjfletcher/local-api/stargazers","contributors_url":"https://api.github.com/repos/bjfletcher/local-api/contributors","subscribers_url":"https://api.github.com/repos/bjfletcher/local-api/subscribers","subscription_url":"https://api.github.com/repos/bjfletcher/local-api/subscription","commits_url":"https://api.github.com/repos/bjfletcher/local-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/bjfletcher/local-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/bjfletcher/local-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/bjfletcher/local-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/bjfletcher/local-api/contents/{+path}","compare_url":"https://api.github.com/repos/bjfletcher/local-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bjfletcher/local-api/merges","archive_url":"https://api.github.com/repos/bjfletcher/local-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bjfletcher/local-api/downloads","issues_url":"https://api.github.com/repos/bjfletcher/local-api/issues{/number}","pulls_url":"https://api.github.com/repos/bjfletcher/local-api/pulls{/number}","milestones_url":"https://api.github.com/repos/bjfletcher/local-api/milestones{/number}","notifications_url":"https://api.github.com/repos/bjfletcher/local-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bjfletcher/local-api/labels{/name}","releases_url":"https://api.github.com/repos/bjfletcher/local-api/releases{/id}","created_at":"2015-08-23T16:43:43Z","updated_at":"2015-08-23T16:43:44Z","pushed_at":"2015-08-24T09:54:04Z","git_url":"git://github.com/bjfletcher/local-api.git","ssh_url":"git@github.com:bjfletcher/local-api.git","clone_url":"https://github.com/bjfletcher/local-api.git","svn_url":"https://github.com/bjfletcher/local-api","homepage":"","size":12650,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"isaacloud:master","ref":"master","sha":"147e2f2c78f7886a77f54251c8c8881dc462a549","user":{"login":"isaacloud","id":5777381,"avatar_url":"https://avatars.githubusercontent.com/u/5777381?v=3","gravatar_id":"","url":"https://api.github.com/users/isaacloud","html_url":"https://github.com/isaacloud","followers_url":"https://api.github.com/users/isaacloud/followers","following_url":"https://api.github.com/users/isaacloud/following{/other_user}","gists_url":"https://api.github.com/users/isaacloud/gists{/gist_id}","starred_url":"https://api.github.com/users/isaacloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaacloud/subscriptions","organizations_url":"https://api.github.com/users/isaacloud/orgs","repos_url":"https://api.github.com/users/isaacloud/repos","events_url":"https://api.github.com/users/isaacloud/events{/privacy}","received_events_url":"https://api.github.com/users/isaacloud/received_events","type":"Organization","site_admin":false},"repo":{"id":16734695,"name":"local-api","full_name":"isaacloud/local-api","owner":{"login":"isaacloud","id":5777381,"avatar_url":"https://avatars.githubusercontent.com/u/5777381?v=3","gravatar_id":"","url":"https://api.github.com/users/isaacloud","html_url":"https://github.com/isaacloud","followers_url":"https://api.github.com/users/isaacloud/followers","following_url":"https://api.github.com/users/isaacloud/following{/other_user}","gists_url":"https://api.github.com/users/isaacloud/gists{/gist_id}","starred_url":"https://api.github.com/users/isaacloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/isaacloud/subscriptions","organizations_url":"https://api.github.com/users/isaacloud/orgs","repos_url":"https://api.github.com/users/isaacloud/repos","events_url":"https://api.github.com/users/isaacloud/events{/privacy}","received_events_url":"https://api.github.com/users/isaacloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/isaacloud/local-api","description":"LocalAPI application is based on Node.js library and allows for running a fully functional API on the basis of definitions included in a raml file. The path to the raml file is passed as a parameter when the application is starting. LocalAPI also allows for simulating the basic functionality of the OAuth library.","fork":false,"url":"https://api.github.com/repos/isaacloud/local-api","forks_url":"https://api.github.com/repos/isaacloud/local-api/forks","keys_url":"https://api.github.com/repos/isaacloud/local-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/isaacloud/local-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/isaacloud/local-api/teams","hooks_url":"https://api.github.com/repos/isaacloud/local-api/hooks","issue_events_url":"https://api.github.com/repos/isaacloud/local-api/issues/events{/number}","events_url":"https://api.github.com/repos/isaacloud/local-api/events","assignees_url":"https://api.github.com/repos/isaacloud/local-api/assignees{/user}","branches_url":"https://api.github.com/repos/isaacloud/local-api/branches{/branch}","tags_url":"https://api.github.com/repos/isaacloud/local-api/tags","blobs_url":"https://api.github.com/repos/isaacloud/local-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/isaacloud/local-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/isaacloud/local-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/isaacloud/local-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/isaacloud/local-api/statuses/{sha}","languages_url":"https://api.github.com/repos/isaacloud/local-api/languages","stargazers_url":"https://api.github.com/repos/isaacloud/local-api/stargazers","contributors_url":"https://api.github.com/repos/isaacloud/local-api/contributors","subscribers_url":"https://api.github.com/repos/isaacloud/local-api/subscribers","subscription_url":"https://api.github.com/repos/isaacloud/local-api/subscription","commits_url":"https://api.github.com/repos/isaacloud/local-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/isaacloud/local-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/isaacloud/local-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/isaacloud/local-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/isaacloud/local-api/contents/{+path}","compare_url":"https://api.github.com/repos/isaacloud/local-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/isaacloud/local-api/merges","archive_url":"https://api.github.com/repos/isaacloud/local-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/isaacloud/local-api/downloads","issues_url":"https://api.github.com/repos/isaacloud/local-api/issues{/number}","pulls_url":"https://api.github.com/repos/isaacloud/local-api/pulls{/number}","milestones_url":"https://api.github.com/repos/isaacloud/local-api/milestones{/number}","notifications_url":"https://api.github.com/repos/isaacloud/local-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/isaacloud/local-api/labels{/name}","releases_url":"https://api.github.com/repos/isaacloud/local-api/releases{/id}","created_at":"2014-02-11T15:14:38Z","updated_at":"2015-08-23T12:24:43Z","pushed_at":"2015-08-26T09:07:55Z","git_url":"git://github.com/isaacloud/local-api.git","ssh_url":"git@github.com:isaacloud/local-api.git","clone_url":"https://github.com/isaacloud/local-api.git","svn_url":"https://github.com/isaacloud/local-api","homepage":"","size":13297,"stargazers_count":18,"watchers_count":18,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/isaacloud/local-api/pulls/1"},"html":{"href":"https://github.com/isaacloud/local-api/pull/1"},"issue":{"href":"https://api.github.com/repos/isaacloud/local-api/issues/1"},"comments":{"href":"https://api.github.com/repos/isaacloud/local-api/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/isaacloud/local-api/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/isaacloud/local-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/isaacloud/local-api/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/isaacloud/local-api/statuses/90247bb773a1acfa05a82400c97f7af4038b7d11"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"wszydlak","id":6583977,"avatar_url":"https://avatars.githubusercontent.com/u/6583977?v=3","gravatar_id":"","url":"https://api.github.com/users/wszydlak","html_url":"https://github.com/wszydlak","followers_url":"https://api.github.com/users/wszydlak/followers","following_url":"https://api.github.com/users/wszydlak/following{/other_user}","gists_url":"https://api.github.com/users/wszydlak/gists{/gist_id}","starred_url":"https://api.github.com/users/wszydlak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wszydlak/subscriptions","organizations_url":"https://api.github.com/users/wszydlak/orgs","repos_url":"https://api.github.com/users/wszydlak/repos","events_url":"https://api.github.com/users/wszydlak/events{/privacy}","received_events_url":"https://api.github.com/users/wszydlak/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":22,"deletions":6,"changed_files":1}}