{"id":42663475,"url":"https://github.com/dansteele/redbox","last_synced_at":"2026-01-29T10:00:13.691Z","repository":{"id":87470922,"uuid":"41727531","full_name":"dansteele/redbox","owner":"dansteele","description":"Grape based API","archived":false,"fork":false,"pushed_at":"2015-09-03T14:45:15.000Z","size":312,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-24T09:18:23.040Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/dansteele.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-09-01T08:48:34.000Z","updated_at":"2015-09-01T08:49:16.000Z","dependencies_parsed_at":"2023-03-13T18:46:42.313Z","dependency_job_id":null,"html_url":"https://github.com/dansteele/redbox","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dansteele/redbox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dansteele%2Fredbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dansteele%2Fredbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dansteele%2Fredbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dansteele%2Fredbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dansteele","download_url":"https://codeload.github.com/dansteele/redbox/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dansteele%2Fredbox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28875445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T09:47:23.353Z","status":"ssl_error","status_checked_at":"2026-01-29T09:47:19.357Z","response_time":59,"last_error":"SSL_read: 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":"2026-01-29T10:00:09.693Z","updated_at":"2026-01-29T10:00:13.682Z","avatar_url":"https://github.com/dansteele.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"RedBox Grape API on Rack\n=================\nA [Grape](http://github.com/ruby-grape/grape) API mounted on Rack.\n\n* [ping](api/ping.rb): a hello world example that returns a JSON document\n* [post_put](api/post_put.rb): a simple `POST` and `PUT` example\n* [post_json](api/post_json.rb): an example that shows a `POST` of JSON data\n* [get_json](api/get_json.rb): an example that pre-processes params sent as JSON data\n* [rescue_from](api/rescue_from.rb): an example of `rescue_from` that wraps all exceptions in an HTTP error code 500\n* [path_versioning](api/path_versioning.rb): an example that uses path-based versioning\n* [header_versioning](api/header_versioning.rb): an example that uses vendor header-based versioning\n* [wrap_response](api/wrap_response.rb): a middleware that wraps all responses and always returns HTTP code 200\n* [content_type](api/content_type.rb): an example that overrides the default `Content-Type` or returns data in both JSON and XML formats\n* [upload_file](api/upload_file.rb): an example that demonstrates a file upload and download\n* [entites](api/entities.rb): an example of using [grape-entity](https://github.com/ruby-grape/grape-entity)\n\nSee\n---\n\n[Deployed on Heroku](https://redbox-api.herokuapp.com/).\n\nRun\n---\n\n```\n$ bundle install\n$ rackup\n\nLoading NewRelic in developer mode ...\n[2013-06-20 08:57:58] INFO  WEBrick 1.3.1\n[2013-06-20 08:57:58] INFO  ruby 1.9.3 (2013-02-06) [x86_64-darwin11.4.2]\n[2013-06-20 08:57:58] INFO  WEBrick::HTTPServer#start: pid=247 port=9292\n```\n\n### Hello World\n\nNavigate to http://localhost:9292/api/ping with a browser or use `curl`.\n\n```\n$ curl http://localhost:9292/api/ping\n\n{\"ping\":\"pong\"}\n```\n\n### Get Plain Text\n\n```\n$ curl http://localhost:9292/api/plain_text\n\nA red brown fox jumped over the road.\n```\n\n### Upload a File\n\n```\n$ curl -X POST -i -F image_file=@spec/fixtures/grape_logo.png http://localhost:9292/api/avatar\n\n{\"filename\":\"grape_logo.png\",\"size\":4272}\n```\n\n### Upload and Download a File\n\n```\n$ curl -X POST -i -F file=@spec/fixtures/grape_logo.png http://localhost:9292/api/download.png\n$ curl -X POST -i -F file=@api/ping.rb http://localhost:9292/api/download.rb\n```\n\nList Routes\n-----------\n\n```\nrake routes\n```\n\nExplore the API\n---------------\n\nExplore the API using [Swagger UI](http://petstore.swagger.io). Run the application and point the explorer to `http://localhost:9292/api/swagger_doc` or `http://grape-on-rack.herokuapp.com/api/swagger_doc`.\n\nNew Relic\n---------\n\nThe application is setup with NewRelic w/ Developer Mode. Navigate to http://localhost:9292/newrelic after making some API calls.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdansteele%2Fredbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdansteele%2Fredbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdansteele%2Fredbox/lists"}