- JavaScript
- cURL
fetch('https://api.mockulator.com/api/ABC12345/myserver/users', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'your-api-key'
},
body: JSON.stringify({
name: 'John Doe',
email: 'john@example.com'
})
})
.then(response => response.json())
.then(data => console.log(data));
curl -X POST \
https://api.mockulator.com/api/ABC12345/myserver/users \
-H "Content-Type: application/json" \
-H "X-API-Key: your-api-key" \
-d '{"name": "John Doe", "email": "john@example.com"}'