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

restangular POST to flask back end #1283

Open
pierpy opened this issue Dec 15, 2015 · 1 comment
Open

restangular POST to flask back end #1283

pierpy opened this issue Dec 15, 2015 · 1 comment

Comments

@pierpy
Copy link

pierpy commented Dec 15, 2015

Hi, i'm trying to send a POST request via restangular to a flask back-end with the following code
(url: /patient/search):

app.controller('inserisciCtrl', function($scope, Restangular){

$scope.formData={"nome":"pierpaolo", "cognome":"croce"};
var paziente=Restangular.all('search');
paziente.post($scope.formData);

});

the request is send but without any data...
where i'm wrong?
any suggest is appreciated

@daviesgeek
Copy link
Collaborator

I'm not having this issue. Can you confirm for me?

http://plnkr.co/edit/AV5dNX36bYrMbkVIsKeb?p=preview

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

No branches or pull requests

2 participants