Skip to content
New issue

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

Update function works but sends the error response #82

Open
lajos93 opened this issue Mar 4, 2017 · 1 comment
Open

Update function works but sends the error response #82

lajos93 opened this issue Mar 4, 2017 · 1 comment

Comments

@lajos93
Copy link

lajos93 commented Mar 4, 2017

Here is the REST API I am using http://rest.learncode.academy/api/learncode/something
everything(ADD, SELECT, DELETE) works fine except the UPDATE doesnt send the proper response:

function updateUser() {
      var params = {
	name: 'U222User',
	email: 'newuser@esmail.com'
    };

    // UPDATE /userss/:id
    user.save(params, {
	success: function() {
		alert('suuccc');
	},
	error: function() {
		alert('THIS DOESNT WORK');
	}
    });
}

It updates the API, but alerts the ERROR , why?

@jasonkneen
Copy link
Collaborator

Possibly related to #83? Try the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants