ampersand-rest-collection
ampersand-rest-collection copied to clipboard
ampersand-collection with REST and lodash mixins for easy use with REST APIs.
I use fetch() method like this : ```js let provinces = new ProvinceRestCollection(); provinces.fetch({ success: function() { //$scope.provinces bind to the selectbox in view $scope.provinces = provinces.map(function (person) { return...
Trying to request cors request with code: ``` javascript export default Collection.extend({ model: person, url () { return 'http://127.0.0.1:5000/person/' }, ajaxConfig: function () { return { headers: { 'Access-Control-Allow-Origin': 'http//:127.0.0.1:3000'...
I have a model that has children (i.e. links to other instances of 2 other model types). The models are kept in a collection. When calling `collection.create` with the `data`...
Hi again, in ref to https://github.com/AmpersandJS/ampersand-rest-collection/issues/26, I just wanted to get seconds on this opinion: IMHO, it doesn't make sense for the `rest-collection` to have the same constructor as the...
Where to deifn method, type, etc in the Collection. Need to know how to use success too. ``` js var Collection = AmpersandRestCollection.extend({ url:'http://localhost:3000/users', model: SignupModel, type: "POST", method: "POST",...
other examples: ``` javascript collection.fetch([options]) collection.getOrFetch('id', [options], callback) ``` current: :-1: ``` javascript collection.fetchById('id', callback) ``` preferred: :+1: ``` javascript collection.fetchById('id', [options], callback) ```
We are in the planning stages of implementing a new authentication scheme based on the HAWK signature authentications scheme. Using the planned scheme, we would need to generate a signature...
I have a particular collection that has a function for determining which model should be created instead of a model object as described in the documentation. However, I've run into...