- Fixed bug when adding metadata to response in ResopnseExtractor. It wasn't being added
- Added enhanced promises. Check the section in README.
- Changed by default from Underscore to Lodash. They both can be used anyway. (thanks @pauldijou)
- Added tests for both Underscore and Lodash to check it's working. (thanks @pauldijou)
- Added onElemRestangularized hook
- Added posibility to add your own Restangular methods
- Added the posibility to do URL Building and RequestLess tree navigations
- Added alias to
do[method]
. For example, Now you can docustomPOST
as well asdoPOST
- responseExtractor renamed to responseInterceptor. Added alias from responseExtractor to responseInterceptor to mantain backwards compatibility
- responseExtractor now receives 4 parameters. Response, operation, what (path of current element) and URL
- Error function for any Restangular action now receives a response to get StatusCode and other interesting stuff
- Added listTypeIsArray property to set getList as not an array.
- Added
requestSuffix
configuration for requests ending en .json what
field is now configurable and not hardcoded anymore- All instance variables from
RestangularProvider
are now local variables to reduce visibility - Fully functional version with all desired features
- Added Custom methods to all Restangular objects. Check it out in the README
- Fixed but that didn't let ID to be 0.
- Added different Collection methods and Element methods
- Added posibility po do a post in a collection to post an element to itself
- Added Travis CI for build
- Fixed bug with parentResource after a post of a new element
- When doing a post, if no element is returned, we enhance the object received as a parameter
- Added new HTTP methods to use: Patch, Head, Trace and Options (thanks @pauldijou)
- Added tests with Karma for all functionality.
- Restangular fields can now be configured. You can set the id, route and parentResource fields. They're not hardcoded anymore
- Added ResponseExtractor for when the real data is wrapped in an envelope in the WebServer response.
- Now all methods accept Headers. You can query
account.getList('buildings', {query: 'param'}, {'header': 'mine'})
- Added query params to all methods. getList, post, put, get and delete accept query params now.
- Added post method to all elements. Now you can also create new elements by calling
account.post('buildings', {name: "gonto"})
.
- Changed
elem.delete()
toelem.remove()
due to errors with Closure Compiler in Play 2