{"action":"closed","number":95,"pull_request":{"url":"https://api.github.com/repos/500tech/bdsm/pulls/95","id":53057610,"html_url":"https://github.com/500tech/bdsm/pull/95","diff_url":"https://github.com/500tech/bdsm/pull/95.diff","patch_url":"https://github.com/500tech/bdsm/pull/95.patch","issue_url":"https://api.github.com/repos/500tech/bdsm/issues/95","number":95,"state":"closed","locked":false,"title":"Added response body templating using eval.","user":{"login":"adamkleingit","id":889418,"avatar_url":"https://avatars.githubusercontent.com/u/889418?v=3","gravatar_id":"","url":"https://api.github.com/users/adamkleingit","html_url":"https://github.com/adamkleingit","followers_url":"https://api.github.com/users/adamkleingit/followers","following_url":"https://api.github.com/users/adamkleingit/following{/other_user}","gists_url":"https://api.github.com/users/adamkleingit/gists{/gist_id}","starred_url":"https://api.github.com/users/adamkleingit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamkleingit/subscriptions","organizations_url":"https://api.github.com/users/adamkleingit/orgs","repos_url":"https://api.github.com/users/adamkleingit/repos","events_url":"https://api.github.com/users/adamkleingit/events{/privacy}","received_events_url":"https://api.github.com/users/adamkleingit/received_events","type":"User","site_admin":false},"body":"Also noticed error in POST nested JSON object param matching. Didn't fix it yet - just not crashing.\r\n\r\nLet's take an example of \r\nPOST 'http://example.com/posts/1?q=str\r\npost data: {name: 'value'}\r\n\r\nThen templating allows you to use javascript inside the response body. I provide the following vars available:\r\ndata - {name: 'value'}\r\npath - ['posts', '1']\r\nquery: {q: str}\r\nfaker: the faker library (for generating random strings / uuids / etc.)\r\nstate: a state that will persist across mocked requests (in memory)\r\n","created_at":"2015-12-08T23:54:36Z","updated_at":"2015-12-17T10:14:14Z","closed_at":"2015-12-17T10:14:14Z","merged_at":"2015-12-17T10:14:14Z","merge_commit_sha":"222ae46501f53ccb56dc833183a9db9176dc2e24","assignee":{"login":"ilyagelman","id":139322,"avatar_url":"https://avatars.githubusercontent.com/u/139322?v=3","gravatar_id":"","url":"https://api.github.com/users/ilyagelman","html_url":"https://github.com/ilyagelman","followers_url":"https://api.github.com/users/ilyagelman/followers","following_url":"https://api.github.com/users/ilyagelman/following{/other_user}","gists_url":"https://api.github.com/users/ilyagelman/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyagelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyagelman/subscriptions","organizations_url":"https://api.github.com/users/ilyagelman/orgs","repos_url":"https://api.github.com/users/ilyagelman/repos","events_url":"https://api.github.com/users/ilyagelman/events{/privacy}","received_events_url":"https://api.github.com/users/ilyagelman/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/500tech/bdsm/pulls/95/commits","review_comments_url":"https://api.github.com/repos/500tech/bdsm/pulls/95/comments","review_comment_url":"https://api.github.com/repos/500tech/bdsm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/500tech/bdsm/issues/95/comments","statuses_url":"https://api.github.com/repos/500tech/bdsm/statuses/cbc0592d63e7fa17c3b00982c071622685f02dbe","head":{"label":"500tech:response_templating","ref":"response_templating","sha":"cbc0592d63e7fa17c3b00982c071622685f02dbe","user":{"login":"500tech","id":5308127,"avatar_url":"https://avatars.githubusercontent.com/u/5308127?v=3","gravatar_id":"","url":"https://api.github.com/users/500tech","html_url":"https://github.com/500tech","followers_url":"https://api.github.com/users/500tech/followers","following_url":"https://api.github.com/users/500tech/following{/other_user}","gists_url":"https://api.github.com/users/500tech/gists{/gist_id}","starred_url":"https://api.github.com/users/500tech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/500tech/subscriptions","organizations_url":"https://api.github.com/users/500tech/orgs","repos_url":"https://api.github.com/users/500tech/repos","events_url":"https://api.github.com/users/500tech/events{/privacy}","received_events_url":"https://api.github.com/users/500tech/received_events","type":"Organization","site_admin":false},"repo":{"id":46858990,"name":"bdsm","full_name":"500tech/bdsm","owner":{"login":"500tech","id":5308127,"avatar_url":"https://avatars.githubusercontent.com/u/5308127?v=3","gravatar_id":"","url":"https://api.github.com/users/500tech","html_url":"https://github.com/500tech","followers_url":"https://api.github.com/users/500tech/followers","following_url":"https://api.github.com/users/500tech/following{/other_user}","gists_url":"https://api.github.com/users/500tech/gists{/gist_id}","starred_url":"https://api.github.com/users/500tech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/500tech/subscriptions","organizations_url":"https://api.github.com/users/500tech/orgs","repos_url":"https://api.github.com/users/500tech/repos","events_url":"https://api.github.com/users/500tech/events{/privacy}","received_events_url":"https://api.github.com/users/500tech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/500tech/bdsm","description":"Bad ass client side mocking solution","fork":false,"url":"https://api.github.com/repos/500tech/bdsm","forks_url":"https://api.github.com/repos/500tech/bdsm/forks","keys_url":"https://api.github.com/repos/500tech/bdsm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/500tech/bdsm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/500tech/bdsm/teams","hooks_url":"https://api.github.com/repos/500tech/bdsm/hooks","issue_events_url":"https://api.github.com/repos/500tech/bdsm/issues/events{/number}","events_url":"https://api.github.com/repos/500tech/bdsm/events","assignees_url":"https://api.github.com/repos/500tech/bdsm/assignees{/user}","branches_url":"https://api.github.com/repos/500tech/bdsm/branches{/branch}","tags_url":"https://api.github.com/repos/500tech/bdsm/tags","blobs_url":"https://api.github.com/repos/500tech/bdsm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/500tech/bdsm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/500tech/bdsm/git/refs{/sha}","trees_url":"https://api.github.com/repos/500tech/bdsm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/500tech/bdsm/statuses/{sha}","languages_url":"https://api.github.com/repos/500tech/bdsm/languages","stargazers_url":"https://api.github.com/repos/500tech/bdsm/stargazers","contributors_url":"https://api.github.com/repos/500tech/bdsm/contributors","subscribers_url":"https://api.github.com/repos/500tech/bdsm/subscribers","subscription_url":"https://api.github.com/repos/500tech/bdsm/subscription","commits_url":"https://api.github.com/repos/500tech/bdsm/commits{/sha}","git_commits_url":"https://api.github.com/repos/500tech/bdsm/git/commits{/sha}","comments_url":"https://api.github.com/repos/500tech/bdsm/comments{/number}","issue_comment_url":"https://api.github.com/repos/500tech/bdsm/issues/comments{/number}","contents_url":"https://api.github.com/repos/500tech/bdsm/contents/{+path}","compare_url":"https://api.github.com/repos/500tech/bdsm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/500tech/bdsm/merges","archive_url":"https://api.github.com/repos/500tech/bdsm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/500tech/bdsm/downloads","issues_url":"https://api.github.com/repos/500tech/bdsm/issues{/number}","pulls_url":"https://api.github.com/repos/500tech/bdsm/pulls{/number}","milestones_url":"https://api.github.com/repos/500tech/bdsm/milestones{/number}","notifications_url":"https://api.github.com/repos/500tech/bdsm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/500tech/bdsm/labels{/name}","releases_url":"https://api.github.com/repos/500tech/bdsm/releases{/id}","created_at":"2015-11-25T12:00:23Z","updated_at":"2015-12-13T13:33:10Z","pushed_at":"2015-12-17T10:14:14Z","git_url":"git://github.com/500tech/bdsm.git","ssh_url":"git@github.com:500tech/bdsm.git","clone_url":"https://github.com/500tech/bdsm.git","svn_url":"https://github.com/500tech/bdsm","homepage":"","size":327,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":27,"forks":0,"open_issues":27,"watchers":4,"default_branch":"master"}},"base":{"label":"500tech:master","ref":"master","sha":"8d60a3f2f7058027ef6ab78b1c7c8bd9fcdddc4d","user":{"login":"500tech","id":5308127,"avatar_url":"https://avatars.githubusercontent.com/u/5308127?v=3","gravatar_id":"","url":"https://api.github.com/users/500tech","html_url":"https://github.com/500tech","followers_url":"https://api.github.com/users/500tech/followers","following_url":"https://api.github.com/users/500tech/following{/other_user}","gists_url":"https://api.github.com/users/500tech/gists{/gist_id}","starred_url":"https://api.github.com/users/500tech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/500tech/subscriptions","organizations_url":"https://api.github.com/users/500tech/orgs","repos_url":"https://api.github.com/users/500tech/repos","events_url":"https://api.github.com/users/500tech/events{/privacy}","received_events_url":"https://api.github.com/users/500tech/received_events","type":"Organization","site_admin":false},"repo":{"id":46858990,"name":"bdsm","full_name":"500tech/bdsm","owner":{"login":"500tech","id":5308127,"avatar_url":"https://avatars.githubusercontent.com/u/5308127?v=3","gravatar_id":"","url":"https://api.github.com/users/500tech","html_url":"https://github.com/500tech","followers_url":"https://api.github.com/users/500tech/followers","following_url":"https://api.github.com/users/500tech/following{/other_user}","gists_url":"https://api.github.com/users/500tech/gists{/gist_id}","starred_url":"https://api.github.com/users/500tech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/500tech/subscriptions","organizations_url":"https://api.github.com/users/500tech/orgs","repos_url":"https://api.github.com/users/500tech/repos","events_url":"https://api.github.com/users/500tech/events{/privacy}","received_events_url":"https://api.github.com/users/500tech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/500tech/bdsm","description":"Bad ass client side mocking solution","fork":false,"url":"https://api.github.com/repos/500tech/bdsm","forks_url":"https://api.github.com/repos/500tech/bdsm/forks","keys_url":"https://api.github.com/repos/500tech/bdsm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/500tech/bdsm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/500tech/bdsm/teams","hooks_url":"https://api.github.com/repos/500tech/bdsm/hooks","issue_events_url":"https://api.github.com/repos/500tech/bdsm/issues/events{/number}","events_url":"https://api.github.com/repos/500tech/bdsm/events","assignees_url":"https://api.github.com/repos/500tech/bdsm/assignees{/user}","branches_url":"https://api.github.com/repos/500tech/bdsm/branches{/branch}","tags_url":"https://api.github.com/repos/500tech/bdsm/tags","blobs_url":"https://api.github.com/repos/500tech/bdsm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/500tech/bdsm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/500tech/bdsm/git/refs{/sha}","trees_url":"https://api.github.com/repos/500tech/bdsm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/500tech/bdsm/statuses/{sha}","languages_url":"https://api.github.com/repos/500tech/bdsm/languages","stargazers_url":"https://api.github.com/repos/500tech/bdsm/stargazers","contributors_url":"https://api.github.com/repos/500tech/bdsm/contributors","subscribers_url":"https://api.github.com/repos/500tech/bdsm/subscribers","subscription_url":"https://api.github.com/repos/500tech/bdsm/subscription","commits_url":"https://api.github.com/repos/500tech/bdsm/commits{/sha}","git_commits_url":"https://api.github.com/repos/500tech/bdsm/git/commits{/sha}","comments_url":"https://api.github.com/repos/500tech/bdsm/comments{/number}","issue_comment_url":"https://api.github.com/repos/500tech/bdsm/issues/comments{/number}","contents_url":"https://api.github.com/repos/500tech/bdsm/contents/{+path}","compare_url":"https://api.github.com/repos/500tech/bdsm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/500tech/bdsm/merges","archive_url":"https://api.github.com/repos/500tech/bdsm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/500tech/bdsm/downloads","issues_url":"https://api.github.com/repos/500tech/bdsm/issues{/number}","pulls_url":"https://api.github.com/repos/500tech/bdsm/pulls{/number}","milestones_url":"https://api.github.com/repos/500tech/bdsm/milestones{/number}","notifications_url":"https://api.github.com/repos/500tech/bdsm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/500tech/bdsm/labels{/name}","releases_url":"https://api.github.com/repos/500tech/bdsm/releases{/id}","created_at":"2015-11-25T12:00:23Z","updated_at":"2015-12-13T13:33:10Z","pushed_at":"2015-12-17T10:14:14Z","git_url":"git://github.com/500tech/bdsm.git","ssh_url":"git@github.com:500tech/bdsm.git","clone_url":"https://github.com/500tech/bdsm.git","svn_url":"https://github.com/500tech/bdsm","homepage":"","size":327,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":27,"forks":0,"open_issues":27,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/500tech/bdsm/pulls/95"},"html":{"href":"https://github.com/500tech/bdsm/pull/95"},"issue":{"href":"https://api.github.com/repos/500tech/bdsm/issues/95"},"comments":{"href":"https://api.github.com/repos/500tech/bdsm/issues/95/comments"},"review_comments":{"href":"https://api.github.com/repos/500tech/bdsm/pulls/95/comments"},"review_comment":{"href":"https://api.github.com/repos/500tech/bdsm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/500tech/bdsm/pulls/95/commits"},"statuses":{"href":"https://api.github.com/repos/500tech/bdsm/statuses/cbc0592d63e7fa17c3b00982c071622685f02dbe"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"ilyagelman","id":139322,"avatar_url":"https://avatars.githubusercontent.com/u/139322?v=3","gravatar_id":"","url":"https://api.github.com/users/ilyagelman","html_url":"https://github.com/ilyagelman","followers_url":"https://api.github.com/users/ilyagelman/followers","following_url":"https://api.github.com/users/ilyagelman/following{/other_user}","gists_url":"https://api.github.com/users/ilyagelman/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyagelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyagelman/subscriptions","organizations_url":"https://api.github.com/users/ilyagelman/orgs","repos_url":"https://api.github.com/users/ilyagelman/repos","events_url":"https://api.github.com/users/ilyagelman/events{/privacy}","received_events_url":"https://api.github.com/users/ilyagelman/received_events","type":"User","site_admin":false},"comments":0,"review_comments":24,"commits":3,"additions":50,"deletions":8,"changed_files":5}}