{"action":"created","issue":{"url":"https://api.github.com/repos/christianmalek/vuex-rest-api/issues/77","repository_url":"https://api.github.com/repos/christianmalek/vuex-rest-api","labels_url":"https://api.github.com/repos/christianmalek/vuex-rest-api/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/christianmalek/vuex-rest-api/issues/77/comments","events_url":"https://api.github.com/repos/christianmalek/vuex-rest-api/issues/77/events","html_url":"https://github.com/christianmalek/vuex-rest-api/issues/77","id":350678706,"node_id":"MDU6SXNzdWUzNTA2Nzg3MDY=","number":77,"title":"[QUESTION] - Pre API Call Transformation","user":{"login":"go4cas","id":12674784,"node_id":"MDQ6VXNlcjEyNjc0Nzg0","avatar_url":"https://avatars1.githubusercontent.com/u/12674784?v=4","gravatar_id":"","url":"https://api.github.com/users/go4cas","html_url":"https://github.com/go4cas","followers_url":"https://api.github.com/users/go4cas/followers","following_url":"https://api.github.com/users/go4cas/following{/other_user}","gists_url":"https://api.github.com/users/go4cas/gists{/gist_id}","starred_url":"https://api.github.com/users/go4cas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go4cas/subscriptions","organizations_url":"https://api.github.com/users/go4cas/orgs","repos_url":"https://api.github.com/users/go4cas/repos","events_url":"https://api.github.com/users/go4cas/events{/privacy}","received_events_url":"https://api.github.com/users/go4cas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-15T04:04:56Z","updated_at":"2018-08-15T05:39:28Z","closed_at":null,"author_association":"NONE","body":"First off ... awesome library!\r\n\r\nI want to know if there is a way of transforming the request payload before calling the API? At present I can use `OnSuccess` to transform the response payload I get back from my back-end API, but for my use case I need to transform the payload, before `POST` and `PUT` requests."},"comment":{"url":"https://api.github.com/repos/christianmalek/vuex-rest-api/issues/comments/413099240","html_url":"https://github.com/christianmalek/vuex-rest-api/issues/77#issuecomment-413099240","issue_url":"https://api.github.com/repos/christianmalek/vuex-rest-api/issues/77","id":413099240,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzA5OTI0MA==","user":{"login":"go4cas","id":12674784,"node_id":"MDQ6VXNlcjEyNjc0Nzg0","avatar_url":"https://avatars1.githubusercontent.com/u/12674784?v=4","gravatar_id":"","url":"https://api.github.com/users/go4cas","html_url":"https://github.com/go4cas","followers_url":"https://api.github.com/users/go4cas/followers","following_url":"https://api.github.com/users/go4cas/following{/other_user}","gists_url":"https://api.github.com/users/go4cas/gists{/gist_id}","starred_url":"https://api.github.com/users/go4cas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/go4cas/subscriptions","organizations_url":"https://api.github.com/users/go4cas/orgs","repos_url":"https://api.github.com/users/go4cas/repos","events_url":"https://api.github.com/users/go4cas/events{/privacy}","received_events_url":"https://api.github.com/users/go4cas/received_events","type":"User","site_admin":false},"created_at":"2018-08-15T05:39:28Z","updated_at":"2018-08-15T05:39:28Z","author_association":"NONE","body":"I got it working by using `beforeRequest`, and setting the `state` object to the \"write format\", as opposed to the `data` object. I then update the state object to the \"view format\" in the `onSuccess`. Is this the optimal way of achieving my use case? Or, is there a better way of doing this?"}}
{"actor":{"display_login":"go4cas"}}