Good evening, sorry for my dummy question, i’m a newbie on DF stack.
I tried to consume Json results from my local XAMP mounted DSP, aimed to a MySql local istance. Json stream is produced , no authentication problems,etc but if i use json coming from such dsp, these outcomes are not “recognized” by AngularJs
Here is an example ( my html page output ) :
Item List
[{“id”:1,“name”:“Fabrissios”,“email”:“fabrissio@provider.it”,“mobile”:“323232323”},{“id”:2,“name”:“alessios”,“email”:“alessio@provider.it”,“mobile”:“39i4394394398”}]
If i use the same javascript on a sample restful server i get a kind of json results i can immediately use in my AngularJs app
http://jsonplaceholder.typicode.com/users
and this is my very simple angularJs code for controller:
app.controller(
'MainCtrl',
function($scope,$http) {
//var promise = $http.get('http://jsonplaceholder.typicode.com/users');
var promise = $http.get('http://localhost:80/rest/mysqllocal_phptutorial/customers?app_name=DF_EXPLORE');
promise.then (
function(response) {
$scope.options = response.data;
})
I know it’s not an AngularJs forum but it sounds strange to me not being able to consume dsp json response like any other json response i got around the web for testing purposes
I know maybe i’m missing some details on DSP admin or something like that , please, kindly help these poor newbie
Thanks guys, my best regards
Fabrizio