Waziup / api-server

3 stars 6 forks source link

notif: internal server error #30

Open cdupont opened 6 years ago

cdupont commented 6 years ago

Posting a wrong/empty notification results in 500 error:

curl -X POST "http://localhost:80/api/v1/domains/waziup/notifications" -H  "accept: application/json" -H  "Content-Type: application/json" -d "{}"

It should be 422 unprocessable.