#1.0.5
- Several bug fixes
- Added
parentless
configuration to ignore nested restful URLs
#1.0.2
- First final release
- Added
one
andall
to all collection methods - Added
fullResponse
for getting the full$http
response in every call - Improved documentation on
addElemTransformer
- Configuration can be set globally on either
RestangularProvider
orRestangular
#0.8.9
- Fix call to
isOverridenMethod
insetMethodOverriders
.
#0.8.8
- Removed extra trailling slash for elements without ID. Thanks @cboden
#0.8.7
- Bugfix for Refactor
#0.8.6
- Ditched the buggy
$resource
and using$http
inside :D
#0.8.4
- Fixed bug with defaultHttpFields for scoped configuration
- Added
defaultHeaders
#0.8.3
- Fixed bug with URLHandler. Now it uses local configuration as well
- Added error interceptor
- Fixed minor bugs
#0.8.0
- Big refactor to use scoped configurations
#0.7.3
- All configuration can be done via either
Restangular
orRestangularProvider
- url field now is called getRestangularUrl
id
configuration fromrestangularFields
now accepts nested (dotted) properties
#0.7.1
- Added
defaultRequestParams
to set default request query parameters
#0.7.0
- RequestInterceptor wasn't being called in getList
- Removed extra
/
when no restangularWhat is provided. This is fixed by Angular's team since version 1.1.5 but this fixes it for all versions including 1.0.X - Added documentation for supported AngularJS versions
- Added url method to elements which returns the URL of the current object
- Wrapping everything in an anonymous self executed function to not expose anything
- Bug fix for a regresion error using _.omit
- Added element transformers to transform any Restangularized element.
- Added putElement method to collection to put a certain element at an index and return a promise of the updated array.
- Added
Restangular.copy
for copying objects
- added methodOverriders to override any HTTP Method
- Added requestInterceptor
- Added
defaultHttpFields
configuration property
- URL suffix is unescaped now
- Elements are striped from Restangular fields before being sent to the server
- 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