We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
¿Por qué las funciones get y del no aceptan de entrada p_params? put y post sí lo aceptan
Resource.prototype.get = function(p_path, f_success, f_error) { return this.ajax("GET", p_path, null, f_success, f_error); }; Resource.prototype.del = function(p_path, f_success, f_error) { return this.ajax("DELETE", p_path, null, f_success, f_error); };
Creo que es más cómodo que lo acepten
The text was updated successfully, but these errors were encountered:
To make requests using DELETE verb you should send parameter as path-parameter and adding it may have no sense.
DELETE
path-parameter
To make GET request I think like you and jQuery
GET
I also think that f_success and f_error can be removed to use the JQ promise returned:
f_success
f_error
resource.del("book/5").done(onSuccess).fail(onFail);
Sorry, something went wrong.
No branches or pull requests
¿Por qué las funciones get y del no aceptan de entrada p_params? put y post sí lo aceptan
Creo que es más cómodo que lo acepten
The text was updated successfully, but these errors were encountered: