Releases: devinivy/bedwetter
Releases · devinivy/bedwetter
Acting as a User
Settle on HTTP verbs and responses.
Here I've adjusted the HTTP verbs away from those used in sailsjs's blueprints hook. I actually used GitHub's API v3 as a reference point. I've also adjusted the behavior of the populate
bedwetter to return an array of associated records in the case of /model/1/association
-type routes and return a simple 204 or 404 to verify an association in the case of /model/1/association/8
-type routes. We also have better tests written, but need higher code coverage overall.
Main changes:
add
is split up intoPUT
for simple association creation andPOST
for record creation followed by association creation.update
can usePOST
orPATCH
populate
returns an array of associated records rather than that array populated on a parent record for/model/1/association
-type routes.populate
returns a simple 204 or 404 response for/model/1/association/8
-type routes to check if a relation exists between records. "Populate" may be a misnomer now.- Better tests for all of this.