Closed HazemKhaled closed 8 years ago
Some time i need to fetch POST data, and i don't have access to update the service
exports.definition = { config: { adapter: { type: "restapi", collection_name: "user", idAttribute: "id" }, URL: 'http://domain.com/api/user', debug: 1 }, extendModel: function(Model) { _.extend(Model.prototype, { login: function(params, e) { this.fetch({ url: Model.config.URL + "/login", requestMethod: "POST", data: params, success: e.success, error: e.error }); } }); return Model; } };
Looks fine. can you please bump the version and add the change to the changelog in readme?
Done, check it now
sweet
Some time i need to fetch POST data, and i don't have access to update the service