{"action":"created","issue":{"url":"https://api.github.com/repos/bbyars/mountebank/issues/188","repository_url":"https://api.github.com/repos/bbyars/mountebank","labels_url":"https://api.github.com/repos/bbyars/mountebank/issues/188/labels{/name}","comments_url":"https://api.github.com/repos/bbyars/mountebank/issues/188/comments","events_url":"https://api.github.com/repos/bbyars/mountebank/issues/188/events","html_url":"https://github.com/bbyars/mountebank/issues/188","id":202769279,"number":188,"title":"Not able to change the response dynamically","user":{"login":"ashvin777","id":8143154,"avatar_url":"https://avatars.githubusercontent.com/u/8143154?v=3","gravatar_id":"","url":"https://api.github.com/users/ashvin777","html_url":"https://github.com/ashvin777","followers_url":"https://api.github.com/users/ashvin777/followers","following_url":"https://api.github.com/users/ashvin777/following{/other_user}","gists_url":"https://api.github.com/users/ashvin777/gists{/gist_id}","starred_url":"https://api.github.com/users/ashvin777/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashvin777/subscriptions","organizations_url":"https://api.github.com/users/ashvin777/orgs","repos_url":"https://api.github.com/users/ashvin777/repos","events_url":"https://api.github.com/users/ashvin777/events{/privacy}","received_events_url":"https://api.github.com/users/ashvin777/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-01-24T09:46:23Z","updated_at":"2017-01-26T16:42:03Z","closed_at":null,"body":"<!--\r\nThank you for reporting issues back to mountebank!\r\n\r\nPlease fill out below information to make it easier to resolve.\r\n-->\r\n\r\nHi Team,\r\n\r\nCould you please provide the sample imposter using that I can modify the cached response while serving from proxy. Injector are there but I am not able to use it properly.\r\n\r\nAlso in injector we have to write the source in the imposter body only. Is it possible to add some imposter file reference instead of adding the javascript source in a text format with \\n\\n seperators ??\r\n\r\n#### Expected behaviour\r\nShould allow to change the cached response before serving the request\r\n...\r\n\r\n#### Actual behaviour\r\nCan't see any example on the site doing this.\r\n...\r\n\r\n#### Steps to reproduce\r\n\r\n...\r\n\r\n#### Software versions used\r\n\r\n```\r\nOS         :\r\nmountebank :\r\nnode.js    :\r\n  (only if installed via npm)\r\nInstallation method :\r\n  (npm, zip, tar, pkg, deb, rpm)\r\n```\r\n\r\n#### Log contents in mb.log when running mb --loglevel debug\r\n\r\n<!--\r\nPlease review before pasting to ensure no sensitive data is copied\r\n-->\r\n\r\n```\r\nLog contents here\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/bbyars/mountebank/issues/comments/275439207","html_url":"https://github.com/bbyars/mountebank/issues/188#issuecomment-275439207","issue_url":"https://api.github.com/repos/bbyars/mountebank/issues/188","id":275439207,"user":{"login":"vienin","id":2124283,"avatar_url":"https://avatars.githubusercontent.com/u/2124283?v=3","gravatar_id":"","url":"https://api.github.com/users/vienin","html_url":"https://github.com/vienin","followers_url":"https://api.github.com/users/vienin/followers","following_url":"https://api.github.com/users/vienin/following{/other_user}","gists_url":"https://api.github.com/users/vienin/gists{/gist_id}","starred_url":"https://api.github.com/users/vienin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vienin/subscriptions","organizations_url":"https://api.github.com/users/vienin/orgs","repos_url":"https://api.github.com/users/vienin/repos","events_url":"https://api.github.com/users/vienin/events{/privacy}","received_events_url":"https://api.github.com/users/vienin/received_events","type":"User","site_admin":false},"created_at":"2017-01-26T16:42:03Z","updated_at":"2017-01-26T16:42:03Z","body":"Hello team,\r\n\r\nMy understanding of ashvin777 issue is to have the possiblity to set a behavior \"decorate\" on the generated \"is\" stubs when recording.\r\n\r\nWe just have the same requirement, I'm proposing to add a parameter  \"addDecorateDehavior\" on proxy stubs objects that defines the \"decorate\" function on the generated stubs, in the same way of the parameter \"addWaitDehavior\"."}}
{"actor":{"display_login":"vienin"}}