update readme

This commit is contained in:
Brendan McDevitt 2022-04-12 14:55:04 -05:00
parent 0ef9cf7a3c
commit 81b290595d

View file

@ -80,7 +80,9 @@ For now unauthenticated api over localhost:3000 until I put in some basic token
#### GithubUsers
Create a text file named `./data/github_usernames.txt` with one username per line
There is a seed task that will read this file and perform an API call to github API and store the data in DB for each user.
There is a seed task that will read this file and perform an API call to github API and store the data in DB for each user. The API calls made are using the following graphQL endpoints:
- [User](https://docs.github.com/en/graphql/reference/objects#user) Note: the following keys are returned - github_id, login, name, avatar_url, bio, bio_html, location
- [RepositoryInfo](https://docs.github.com/en/graphql/reference/interfaces#repositoryinfo) Note: An array is returned of each public repository of the user.
```
get "/github_users", to: "github_users#index"
get "/github_users/:username", to: "github_users#show"