I have been staring at this for a while, and finally realized that my code is returning the "200 ok." response instead of the actual data itself, and that is why it won't populate my ionic buttons. When I am calling the API via postman, and printing it to the console it is showing the data that I need, so I am assuming the issue is somewhere in the .ts files.

Below is my API code:

```
app.get('/getAllProvs', function (req,res) {
    //var id = req.params.id;

    connection.query('SELECT * from Patient', function(err, rows, fields) {
        if (!err){
            var response = [];

            if (rows.length != 0) {
                response.push({'result' : 'success', 'data' : rows});
            } else {
                response.push({'result' : 'error', 'msg' : 'No Results Found'});
            }

            res.setHeader('Content-Type', 'application/json');
            //res.status(200).send(JSON.stringify(rows));
            res.send(rows);
            console.log(rows);
        } else {
            res.status(400).send(err);
        }
    });
});

```

below is my provider .ts code:

```
export class RestService {

 data1: any;
  constructor(public http: Http) {
    console.log('Hello RestServiceProvider Provider');
  }

    getAllProvs(){
        if(this.data1){
            return Promise.resolve(this.data1);
        }
        return new Promise(resolve => {
            this.http.get('http://lndapp.wpi.edu:5000/getAllProvs')
            .map(res => res.json())
            .subscribe(data => {
                console.log("rest-services.ts subscribe");
                this.data1 = data;
                console.log(data);
                resolve(this.data1);
            });
        }); 

    }
}

```

below is my page .ts file:

```
export class AllPatientsPage {
  data1: any;

  constructor(public app: App, public loadingCtrl: LoadingController, private toastCtrl: ToastController, public navCtrl: NavController, public restService: RestService){
    this.getAllProvs();
    }
  }
   getAllProvs(){
        this.restService.getAllProvs()
        .then(data => {
            console.log("all-patients.ts data");
            console.log(data);
            this.data1 = data;
        }).catch(e => {
            console.log(e);
        });
    }
}

```