Open Cayan opened 8 years ago
Maybe a simple response like { data: {...} }
in 2XX and { error: {...} }
on 4/5XX would do?
Requiring the implementer to use a pattern could scare some lighter frameworks/libraries that provide little support for that out of the box.
I believe this would be the best approach for a first spec.
Hey could we close this issue?
Lets keep it open for a possible discussion in the future.
I'll edit the README file with some simple response patterns.
hey Guys I need to know whats the answer pattern for post requisitions.
We must define if we are going to support hypermedia responses.
There are few patterns available today, I can mention:
There is a really nice discussion about this topic on the siren repository: https://github.com/kevinswiber/siren/issues/15