cubicweb-wsme #5292808 when GETing an entity that does not exist, we should obtain an empty json list [validation pending]
(rather than plain html) | |
priority | normal |
---|---|
type | bug |
done in | 0.2.1 |
load | 0.200 |
load left | 0.000 |
closed by | #6dead8767f45 Returns proper content with entity-related 404 errors |
patch | Returns proper content with entity-related 404 errors [applied]Return None when GETting a non-existing entity [reviewed] |
Comments
-
2015/04/23 16:58, written by cdevienne
-
2015/04/24 07:43, written by acampeas
-
2015/04/24 09:29, written by cdevienne
-
2015/04/24 09:33, written by acampeas
add commentNo, it should return a "Entity does not exist" with a 404 status code.
"Entity does not exist" is not a type known to me. I'll return None.
For the impl. of 404 I still don't know how to implement it.
Have you seen my patch ? I implemented what I had in mind yesterday.
Oh, nice, LGTM.