My server Api response is like this :-
{"data":{"databases":["rohit_one_test"]},"error":null,"success":true}
I'm using axios with vue js to make the call like this.
//axiosget function
import axios from 'axios';
export function axiosGet (url) {
return axios.get(url,{ headers: {'Authorization': 'Basic token'}})
.then(function (response) {
return response.data.data;
})
.catch(function (error) {
return 'An error occured..' + error;
})
}
i'm calling it somewhere else like this :-
showdblist(){
this.url=API_LOCATION+"/tools/mysql/resources/databases/"+this.domain;
this.dbs=axiosGet(this.url);
console.log(this.dbs);
}
when i log the dbs variable it has something like this.
screen shot here :--https://prnt.sc/kmaxbq
my question is how can i access the name of my databases in the dbs variable ?