Comments (4)
Nope, Rails uses POST for create and PUT for update. It should probably use PATCH instead, but jQuery.rest was built to work with what is, not what should be.
I might make the verb-mapping configurable; that would probably make this more useful for other APIs.
from jquery.rest.
that would be very nice :)
But just to understand, is there's no common agreed standard how rest api should work and wich verb use to do stuff ?
from jquery.rest.
There's a 'correct' way to do it according to the original whitepapers, but the the reality of REST is still catching up.
Steve Klabnik talks a lot about this sort of stuff if you're interested.
from jquery.rest.
thx for the link ;)
from jquery.rest.
Related Issues (8)
- read() requests caching in IE7 HOT 2
- Support JSON contentType HOT 2
- $.update does not send right Accept header HOT 2
- Content-Type management HOT 1
- Use real PUT and DELETE requests for browsers that support them HOT 2
- Does not work with rails 3 jquery ujs driver
- Using jquery.rest with inherited_resources HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery.rest.