{"id":50460736,"url":"https://github.com/dillendev/training-hourly","last_synced_at":"2026-06-01T04:08:28.743Z","repository":{"id":65661853,"uuid":"595603724","full_name":"dillendev/training-hourly","owner":"dillendev","description":"Demo API client for a fake time management tool called: Hourly","archived":false,"fork":false,"pushed_at":"2023-02-03T14:52:35.000Z","size":46,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-06-21T13:07:52.903Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dillendev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-31T12:35:34.000Z","updated_at":"2023-01-31T14:23:38.000Z","dependencies_parsed_at":"2023-02-16T23:15:44.828Z","dependency_job_id":null,"html_url":"https://github.com/dillendev/training-hourly","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"948996d0a7c701c92440f07c8eaf17ef3c7884d2"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/dillendev/training-hourly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillendev%2Ftraining-hourly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillendev%2Ftraining-hourly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillendev%2Ftraining-hourly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillendev%2Ftraining-hourly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dillendev","download_url":"https://codeload.github.com/dillendev/training-hourly/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dillendev%2Ftraining-hourly/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33759350,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-01T04:08:27.825Z","updated_at":"2026-06-01T04:08:28.738Z","avatar_url":"https://github.com/dillendev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hourly\n\n## REST API\n\nThe Hourly API is a REST API and includes an [OpenAPI specification](https://app.swaggerhub.com/apis-docs/dillen.dev/hourly-api/0.0.1) . It isn't published on the internet but can be run locally by using the following command:\n\n```bash\ngo run github.com/dillendev/training-hourly/cmd/server@latest\n```\n\nThis will run the Hourly API on port 8989 on localhost and contains the actual data for the assignment.\n\n## Go client\n\nThe Go client is a client for the Hourly API. It can be used to retrieve the data from the API and can be used to create a CLI or a web application. Note that it requires authorization by using a token. The token can be retrieved by using the `/api/auth/tokens` endpoint.\n\n### Usage\n\n```go\npackage main\n\nimport (\n\t\"github.com/deepmap/oapi-codegen/pkg/securityprovider\"\n\thourly \"github.com/dillendev/training-hourly\"\n)\n\nfunc main() {\n    // Setup bearer token authentication\n\tprovider, err := securityprovider.NewSecurityProviderBearerToken(\"my-token\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t// Setup client-side middleware to add the authorization header\n    authOption := hourly.WithRequestEditorFn(provider.Intercept)\n\n\t// Create a new client for the Hourly API with the middleware\n\tclient, err := hourly.NewClientWithResponses(\"http://localhost:8989\", authOption)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\t// Do something with: client\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdillendev%2Ftraining-hourly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdillendev%2Ftraining-hourly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdillendev%2Ftraining-hourly/lists"}