Attempting to create an Angular application that showcases all of Google's public repositories on GitHub (https://github.com/google). I've successfully displayed a portion of it using the angular-in-memory-web-api:
export class InMemoryDataService implements InMemoryDbService{
createDb() {
const repos = [
{ id: 143044068, name: '0x0g-2018-badge' },
...
{ id: 88582010, name: 'address-geocoder-js' },
];
return {repos};
}
genId(repos: Repo[]): number {
return repos.length > 0 ? Math.max(...repos.map(repo => repo.id)) + 1 : 11;
}
}
I have used the GitHub API to fetch the repositories from the first page.
Is there a method to retrieve all the repositories by utilizing the link ( in my case) instead of manually entering the entire database into my createDb() function?