I am trying to communicate with an API from my React application using Axios. I managed to get the GET request working, but now I need a POST one.
I need the body to
How about using direct axios API?
axios
axios({ method: 'post', url: baseUrl + 'applications/' + appName + '/dataexport/plantypes' + plan, headers: {}, data: { foo: 'bar', // This is the body part } });
Source: axios api