Making API Requests With Axios
Paulund is full of premium tutorials and support to help with your development
Sign up to get full access to all tutorials.
To make requests to the WordPress REST API we need to install another library to help us make these requests. We can use something like jQuery which has helpers for the different methods of GET, POST, PATCH, DELETE, but it may seem like overkill to import the entire jQuery library just to use the Ajax helpers. There are other libraries we can use which just provide helpers for HTTP requests such as vue-resource or axios. VueJS recommends Axios . . .