I want to test a few POST APIs using vegeta, but the post payload is not getting send properly.
vegeta command:
vegeta attack -targets=tmp -rate=1 -duration=1s | tee results.bin | vegeta report
tmp file:
POST http://server-ip/api/salon
@saloninfo.json
saloninfo.json file:
{
"salon_id" : "562737c1ff567dbd5574c814"
}
Basically, the payload is going empty {}.
Can someone please check, what i might be missing.
I believe that this should do the trick:
POST http://server-ip/api/salon
Content-Type: application/json
@saloninfo.json
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With