RESTBench / requirements

Minimum requirements that a repository must fulfill
0 stars 1 forks source link

Responses #1

Open Cayan opened 8 years ago

Cayan commented 8 years ago

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

igorsantos07 commented 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.

Cayan commented 8 years ago

I believe this would be the best approach for a first spec.

HenriqueMatias commented 8 years ago

Hey could we close this issue?

Cayan commented 8 years ago

Lets keep it open for a possible discussion in the future.

I'll edit the README file with some simple response patterns.

HenriqueMatias commented 7 years ago

hey Guys I need to know whats the answer pattern for post requisitions.