mercredi 25 juillet 2018

Using GITHUB API for ember-app dashboard. How to achieve the response from github api https://ift.tt/2JREhW2

Hi I have been using the GITHUB API for practices purposes only and I came across with the API endpoint with this URL URL: https://api.github.com/users/mojombo/repos

On my ember app, I would like to show all the repos of a selected github user.

My approach was

On my route.js let parentModel = this.modelFor('dashboard.users.repos');

return this.store.query('repo', {
  filter: {
    'username': parentModel.get('login') //mojombo
  }
})

However, I am getting a 404 not found

Can someone would share their ideas on what is the approach for the above’s scenario? Thanks in advance




Aucun commentaire:

Enregistrer un commentaire