CodeTanzania / CodeTanzania/open311-api
if no content-type header for POST request API should return an error message
Open
bug
- Dominant language
- JavaScript
- Stars
- 3
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
I have tried to create a priority resource without content-type header but the api created the resource with defaults values and return it with ```status code 200 OK```
example
```json
{
"weight": 0,
"color": "#50A4D8",
"_id": "597cd4aa3118df0004bc3f87",
"createdAt": "2017-07-29T18:32:10.738Z",
"updatedAt": "2017-07-29T18:32:10.738Z",
"uri": "https://dawasco.herokuapp.com/priorities/597cd4aa3118df0004bc3f87"
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.