shaf

A framework for creating hypermedia driven APIs in Sinatra

Downloads
54.5K
Stars
19
shaf - 3.0.0 Latest Release

Published by sammyhenningsson about 3 years ago

  • Minor tweaks to make it possible to mount inside Rails
  • Make generators support namespaces
  • Add namespace option to uri helpers
  • Option to skip generation of models and migrations
  • Drop support for generating api docs from comments
  • Drop support for collection routes with same name resource routes
  • Drop support for Shaf::Formable.form (use form_for(model) instead)

Full Changelog: https://github.com/sammyhenningsson/shaf/compare/2.0.0...3.0.0

shaf - Version 2.0.0

Published by sammyhenningsson over 3 years ago

  • New framework for parsing input
  • New framework for authentication
  • Mediatype profiles
  • API documentation using yard
  • Improved routes rake task
  • Shaf.log instead of global variable
  • Allow routes to be declared without …_path
  • _collection uri helper
  • Fixes for Ruby 3.0 keyword args
  • profile helper for serializers
  • Default to application/problem+json for errors
  • Wrap non-HAL responses in HTML
  • Use shaf form profile from lib instead of gist
  • Use shaf error profile from lib instead of gist
  • Curie links point to profile with fragment id
  • Serialize profils with ALPS
  • Project name in settings.yml
  • Load initializers in their own contexts
  • Module methods for adding uri helpers
  • Use FileTransactions in upgrades
  • Use FileTransactions in generators
  • Remove X-Auth-Token header usage
  • Vary helper