Skip to content

Releases: devinivy/bedwetter

Acting as a User

23 Oct 19:17
Compare
Choose a tag to compare

Now bedwetter knows how to act as a user. Added options, tests and documentation. Still wanting more test coverage.

Settle on HTTP verbs and responses.

21 Oct 15:33
Compare
Choose a tag to compare

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 into PUT for simple association creation and POST for record creation followed by association creation.
  • update can use POST or PATCH
  • 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.