vidigami / backbone-http Goto Github PK
View Code? Open in Web Editor NEWAn HTTP interface for BackboneORM
Home Page: http://vidigami.github.io/backbone-orm/backbone-http.html
License: MIT License
An HTTP interface for BackboneORM
Home Page: http://vidigami.github.io/backbone-orm/backbone-http.html
License: MIT License
I'd really like to be able to set some custom headers on sync, and I thought I'd create an issue before I hack it in myself. Any thoughts on this? My particular use case is being able to identify which client is making the request
The last line seems to be the offending line:
/*
backbone-http.js 0.7.0
Copyright (c) 2013-2014 Vidigami
License: MIT (http://www.opensource.org/licenses/mit-license.php)
Source: https://github.com/vidigami/backbone-http
Dependencies: Backbone.js and Underscore.js.
*/
var Backbone, BackboneORM, CAPABILITIES, HTTPCursor, HTTPSync, JSONUtils, Schema, URL, Utils, backboneSync, _, _ref;
_ref = BackboneORM = __webpack_require__(1), _ = _ref._, Backbone = _ref.Backbone, Utils = _ref.Utils, JSONUtils = _ref.JSONUtils, Schema = _ref.Schema;
URL = BackboneORM.modules.url;
backboneSync = Backbone.sync;
Convenience Methods (cache: false, query_cache: false)
exists
โ Handles an exist with no query
Deprecation warning: moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to moment/moment#1407 for more info.
โ Handles an exist query (141ms)
Using batch and patch commands, try to reduce the number of communications on common actions.
Should the http sync query the server for capabilities?
I get
Cannot PUT /locations
on the console, when trying to edit an entity (a location in this case).
This seems to be because, backbone-rest expects the update url to look like PUT /locations/:id
, but backbone-http PUTs to /locations
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.