caTUstrophy / backend

Backend part for our catastrophe aid tool. Written in Go.
GNU General Public License v3.0
6 stars 3 forks source link

Request to non existing ID gives 200 #79

Closed nielsrolf closed 8 years ago

nielsrolf commented 8 years ago

For example GET regions/12 gives:

{
"Boundaries": {
"Points": [0]
}-
"Description": ""
"ID": ""
"Name": ""
}

We never check our db requests for that. Something like this should return 400 or 404

jeichelbaum commented 8 years ago

fixed for regions, any other endpoints where relevant?