plug_rest v0.7.0 Release Notes

    • ✨ Enhancements

      • Export overridable init/1 and call/2 callbacks so that each Resource can act as a Plug module.
      • Make dynamic path parameters available in conn.params
      • Handler callbacks can manually set the response body with put_rest_body/2
    • 🐛 Bug fixes

      • Terminate correctly when a resource callback wants to :stop
    • Backwards incompatible changes

      • Remove read_path_params/1 (use conn.params instead)
      • Move private connection accessors from Conn to Resource module and change the specs