diff --git a/README.md b/README.md index 1031266..2fb164a 100644 --- a/README.md +++ b/README.md @@ -107,12 +107,24 @@ Requests can be made by passing the relevant config to `axios`. ##### axios(config) ```js +// Send a POST request axios({ - method: 'get', - url: '/user/12345' + method: 'post', + url: '/user/12345', + data: { + firstName: 'Fred', + lastName: 'Flintstone' + } }); ``` +##### axios(url[, config]) + +```js +// Sned a GET request (default method) +axios('/user/12345'); +``` + ### Request method aliases For convenience aliases have been provided for all supported request methods.