Axios Part 3
Axios Enjoy this cheat sheet at its fullest within Dash , the macOS documentation browser. General GET request // Make a request for a user with a given ID axios . get ( '/user?ID=12345' ) . then ( function ( response ) { console . log ( response ); }) . catch ( function ( error ) { console . log ( error ); }); // Optionally the request above could also be done as axios . get ( '/user' , { params : { ID : 12345 } }) . then ( function ( response ) { console . log ( response ); }) . catch ( function ( error ) { console . log ( error ); }); POST request axios . post ( '/user' , { firstName : 'Fred' , lastName : 'Flintstone' }) . then ( function ( response ) { console . log ( response ); }) . catch ( function ( error ) { console . log ( error ); }); Multiple concurrent requests function getUserAcc...