Hello Folks,
I've a Rest WebService that returns some usefull information about my
service in the OPTIONS Http Method as follows:
{
"name": "Bandeira List",
"description": "A simple representation of the model Bandeira.",
"actions": {
"POST": {
"id": {
"type": "integer",
"required": false,
"read_only": true,
"label": "ID"
},
"descricao": {
"type": "string",
"required": false,
"read_only": false,
"label": "Descricao",
"max_length": 45
}
}
}
}
I tried the $http.get function (unsuccessfully), but I can't see the
OPTIONS information in the $scope.appdata (checked trough the firefox
javascript console) through the following code:
var app = angular.module("YupiApp", []);
app.controller('IndexController', function($scope, $http){
$http.get('/api/person/').
success(function(data, status, headers, config){
$scope.appdata = data;
console.log($scope);
}).
error(function(data, status, headers, config){
console.log($scope);
});
});
How Can I Get these informations on an angular app?
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.