axios.get using options object code example
Example 1: axios get
import axios from 'axios';
await axios.get('/user', {
params: {
ID: 12345
}
})
Example 2: axios put request
const res = await axios.put('https://httpbin.org/put', { hello: 'world' });
res.data.headers['Content-Type'];