Skip to content

0.3.0.0 (Rails + Active Model Serializers)

Pre-release
Pre-release
Compare
Choose a tag to compare
@monfresh monfresh released this 28 Mar 18:23
· 1198 commits to master since this release

This release moves the API out of the Grape framework and into Rails controllers with Active Model Serializers.

Notable changes:

  • The API now returns attributes whose values are nil or empty
  • Search now returns a much smaller response since most clients won't need every table in the DB, which is what it used to return.
  • After creating a new location, the response now only sends back the id, name, and slug in the JSON, along with a Location HTTP header with the URL to the new location. That should be all an admin client would need.
  • Added support for API subdomains, to allow you to host your API at http://api.domain.org instead of http://domain.org/api
  • Added support for developer subdomains, to allow you to host your developer portal at http://developer.domain.org
  • Added ENV vars to configure subdomains and/or paths for the API and developer portal (see application.example.yml)
  • Added ENV vars to configure pagination settings (DEFAULT_PER_PAGE and MAX_PER_PAGE) (see application.example.yml)
  • Removed Swagger documentation because it was tied to the API implementation and not portable to Rails controllers. I'm thinking a static site with Markdown files would be the way to go.
  • Validation errors now return 422 instead of 400

Please read through the installation instructions to make sure you have everything configured correctly.