اختبر HTTP Client أي أكسيوس مباشرة من المتصفح
// GET request
axios.get('/api/users')
.then(response => console.log(response.data))
.catch(error => console.error(error))
// POST with data
axios.post('/api/users', {
name: 'John',
email: 'john@example.com'
})
// Parallel requests
const [users, posts] = await Promise.all([
axios.get('/api/users'),
axios.get('/api/posts')
])
// With config
axios({
method: 'post',
url: '/api/login',
data: { username: 'admin', password: 'pass' },
timeout: 5000,
headers: { 'X-Custom': 'value' }
})