{"id":21650998,"url":"https://github.com/iansinnott/reports-example-api","last_synced_at":"2026-05-08T08:33:14.163Z","repository":{"id":35855520,"uuid":"40140321","full_name":"iansinnott/reports-example-api","owner":"iansinnott","description":null,"archived":false,"fork":false,"pushed_at":"2015-08-03T19:40:07.000Z","size":128,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-20T03:39:46.292Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iansinnott.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}},"created_at":"2015-08-03T18:10:11.000Z","updated_at":"2015-08-03T18:35:55.000Z","dependencies_parsed_at":"2022-07-25T19:33:34.832Z","dependency_job_id":null,"html_url":"https://github.com/iansinnott/reports-example-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/iansinnott/reports-example-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iansinnott%2Freports-example-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iansinnott%2Freports-example-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iansinnott%2Freports-example-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iansinnott%2Freports-example-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iansinnott","download_url":"https://codeload.github.com/iansinnott/reports-example-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iansinnott%2Freports-example-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32773040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2024-11-25T07:46:18.205Z","updated_at":"2026-05-08T08:33:14.146Z","avatar_url":"https://github.com/iansinnott.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reports API\n\nThis is a simple REST API for Reports. The goal of this API is to provide a testing ground for new hiring candidates. Using this API they can implement a UI that consumes it during an interview.\n\n## Reports\n\nThere's nothing special about the Reports object. They don't even have an owner attribute, they are just blobs of information meant to loosely resemble a resource you might need to interact with in a production environment.\n\nReports have the following structure:\n\n```\n{\n  id: 'integer primary key',\n  subject: 'string',\n  region: 'string',\n  impact: 'integer',\n  createdAt: 'datetime',\n  updatedAt: 'datetime',\n}\n```\n\nTo create a report the only mandatory field is `subject`. `id`, `createdAt` and `updatedAt` will all be created serverside:\n\n```\nPOST /api/reports {\n  subject: 'My first report'\n}\n\n-\u003e {\n  id: 1,\n  subject: 'My first report',\n  createdAt: '2015-08-03T19:38:30.208Z',\n  updatedAt: '2015-08-03T19:38:30.208Z',\n}\n```\n\n## TODO\n\nDockerizing this thing was proving difficult. Docker build was failing for unclear reasons. The Dockerfile should work in theor. Try running it again and troubleshoot. `docker build -t isinn/reports-api .`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiansinnott%2Freports-example-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiansinnott%2Freports-example-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiansinnott%2Freports-example-api/lists"}