{"action":"closed","issue":{"url":"https://api.github.com/repos/axios/axios/issues/795","repository_url":"https://api.github.com/repos/axios/axios","labels_url":"https://api.github.com/repos/axios/axios/issues/795/labels{/name}","comments_url":"https://api.github.com/repos/axios/axios/issues/795/comments","events_url":"https://api.github.com/repos/axios/axios/issues/795/events","html_url":"https://github.com/axios/axios/issues/795","id":217139865,"number":795,"title":"Confusion about request with data(post, put, etc...)","user":{"login":"reid3290","id":9301137,"avatar_url":"https://avatars1.githubusercontent.com/u/9301137?v=4","gravatar_id":"","url":"https://api.github.com/users/reid3290","html_url":"https://github.com/reid3290","followers_url":"https://api.github.com/users/reid3290/followers","following_url":"https://api.github.com/users/reid3290/following{/other_user}","gists_url":"https://api.github.com/users/reid3290/gists{/gist_id}","starred_url":"https://api.github.com/users/reid3290/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reid3290/subscriptions","organizations_url":"https://api.github.com/users/reid3290/orgs","repos_url":"https://api.github.com/users/reid3290/repos","events_url":"https://api.github.com/users/reid3290/events{/privacy}","received_events_url":"https://api.github.com/users/reid3290/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-27T05:25:38Z","updated_at":"2018-02-06T13:04:47Z","closed_at":"2018-02-06T13:04:47Z","author_association":"NONE","body":"I notice that when you want to post some data, you can use \r\n```\r\naxios.post(url, data, config)\r\n```\r\nbut there is also a data properities in the config object. After looking into the code, I found out that for the post/put request, it assumes there are there parmas. What if i don't provide the data params but put it in the config object? Obviously the config object will be treated as the data to send. It makes people confused. It's better to make it clear in the docs."}}
{"actor":{"display_login":"Khaledgarbaya"}}