This API has 2 endpoints :
- /ping
- /repos
cron.go
This is a background task that fetch (from github) and insert into a SQLite database some repositories info
go run cron.md $TOKEN
$TOKEN
is github access token ℹ️ Anonymous call could fac e github API rate limiting
/ping
returns a json
{
"status": "pong"
}
this could be helpful for status check
/repos
get some data about repos
[
{
"archived": false,
"id": 71,
"name": "ruby-on-rails-tmbundle",
"stars":895
}
]
this endpoint return an array
archived
is aboolean
valueid
is the database id (integer)name
is the repository name (string)star
is the number of stargazers for this repository
- archived, sould be 0 or 1
- stars, should be an integer -> filter is greather than or equal
- name, should be a string -> filter is any name containing the provided value
- Write tests
- Add dockerfile
- Add docker compose
- Find a way to create a background task (cron)