plug_rest v0.7.0 Release Notes
-
✨ Enhancements
- Export overridable
init/1
andcall/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
- Export overridable
🐛 Bug fixes
- Terminate correctly when a resource callback wants to
:stop
- Terminate correctly when a resource callback wants to
Backwards incompatible changes
- Remove
read_path_params/1
(useconn.params
instead) - Move private connection accessors from
Conn
toResource
module and change the specs
- Remove