{"id":31561795,"url":"https://github.com/ruanbekker/ruby-webrick-basic-api","last_synced_at":"2026-04-16T11:02:26.618Z","repository":{"id":265350979,"uuid":"616668744","full_name":"ruanbekker/ruby-webrick-basic-api","owner":"ruanbekker","description":"Ruby Webrick","archived":false,"fork":false,"pushed_at":"2023-03-20T22:31:17.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-31T06:33:40.829Z","etag":null,"topics":["docker","ruby","webrick"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/ruanbekker.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-03-20T20:58:10.000Z","updated_at":"2023-03-20T21:21:43.000Z","dependencies_parsed_at":"2024-11-29T02:43:31.991Z","dependency_job_id":"f67a002b-dd1e-4e91-9859-47fe15d979ad","html_url":"https://github.com/ruanbekker/ruby-webrick-basic-api","commit_stats":null,"previous_names":["ruanbekker/ruby-webrick-basic-api"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ruanbekker/ruby-webrick-basic-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruanbekker%2Fruby-webrick-basic-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruanbekker%2Fruby-webrick-basic-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruanbekker%2Fruby-webrick-basic-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruanbekker%2Fruby-webrick-basic-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ruanbekker","download_url":"https://codeload.github.com/ruanbekker/ruby-webrick-basic-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ruanbekker%2Fruby-webrick-basic-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31882886,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T09:23:21.276Z","status":"ssl_error","status_checked_at":"2026-04-16T09:23:15.028Z","response_time":69,"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":["docker","ruby","webrick"],"created_at":"2025-10-05T03:32:16.388Z","updated_at":"2026-04-16T11:02:26.614Z","avatar_url":"https://github.com/ruanbekker.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ruby-webrick-basic-api\nRuby Webrick\n\n## Run the Server\n\nUsing docker:\n\n```bash\ndocker run -it -p 8080:8080 ruanbekker/ruby-api\n```\n\n## Make Requests\n\nList all items:\n\n```bash\n$ curl -H 'Content-Type: application/json' -XGET http://localhost:8080/api\n{\n    \"items\":[]\n}\n```\n\nCreate Items:\n\n```bash\n$ curl -H 'Content-Type: application/json' -XPOST http://localhost:8080/api -d '{\"name\": \"spotify\", \"description\": \"music streaming service\"}'\n$ curl -H 'Content-Type: application/json' -XPOST http://localhost:8080/api -d '{\"name\": \"netflix\", \"description\": \"tv streaming service\"}'\n```\n\nList all items:\n\n```bash\n$ curl -H 'Content-Type: application/json' -XGET http://localhost:8080/api\n{\n    \"items\": [\n        {\"id\":1,\"name\":\"spotify\",\"description\":\"music streaming service\"},\n        {\"id\":2,\"name\":\"netflix\",\"description\":\"tv streaming service\"}\n    ]\n}\n```\n\nUpdate Item:\n\n```bash\n$ curl -H 'Content-Type: application/json' -XPUT http://localhost:8080/api -d '{\"id\": 2, \"name\": \"netflix\", \"description\": \"tv streaming service...\"}'\n```\n\nDelete Item:\n\n```bash\n$ curl -H 'Content-Type: application/json' -XDELETE http://localhost:8080/api -d '{\"id\": 2}'\n```\n\n## Routes\n\n- GET    /api\n- POST   /api, body: {'name': 'james', 'description': 'foobar'}\n- UPDATE /api, body: {'id': 1, 'name': 'james', 'description': 'foobar'}\n- DELETE /api, body: {'id': 1}","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruanbekker%2Fruby-webrick-basic-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fruanbekker%2Fruby-webrick-basic-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fruanbekker%2Fruby-webrick-basic-api/lists"}