{"id":20801421,"url":"https://github.com/cmirnow/atm-on-grape","last_synced_at":"2026-04-29T14:33:35.292Z","repository":{"id":100728610,"uuid":"370441744","full_name":"cmirnow/atm-on-grape","owner":"cmirnow","description":"ATM on Grape. JSON RESTful API.","archived":false,"fork":false,"pushed_at":"2021-06-23T14:15:50.000Z","size":105,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-25T16:51:15.943Z","etag":null,"topics":["api-atm","banknotes","grape","rails","restful-api"],"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/cmirnow.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":"2021-05-24T18:00:41.000Z","updated_at":"2021-06-23T14:15:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"cdd81d7e-ef15-46e6-8266-475943270830","html_url":"https://github.com/cmirnow/atm-on-grape","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmirnow%2Fatm-on-grape","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmirnow%2Fatm-on-grape/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmirnow%2Fatm-on-grape/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmirnow%2Fatm-on-grape/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmirnow","download_url":"https://codeload.github.com/cmirnow/atm-on-grape/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243147273,"owners_count":20243745,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["api-atm","banknotes","grape","rails","restful-api"],"created_at":"2024-11-17T18:18:03.261Z","updated_at":"2026-04-29T14:33:30.271Z","avatar_url":"https://github.com/cmirnow.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# API ATM on Grape \u0026 Rails\nGuys, this is a test task, and nothing more... :)\n\n[![API ATM on Grape \u0026 Rails](https://github.com/cmirnow/atm-on-grape/blob/master/public/grape.jpg)](https://masterpro.ws/api-atm-on-grape-ruby-on-rails)\n\n## Quickly start\n\n```bash\ngit clone https://github.com/cmirnow/atm-on-grape.git\ncd atm-on-grape\nbundle install\nbundle exec rake db:migrate\nbundle exec rake db:seed\nrails s\n```\nYou can see the list of grape API routes by running:\n```bash\nrails grape:routes\n       GET  |  /api/:version/banknote_asset(.:format)      |  v1  |  list       \n     PATCH  |  /api/:version/banknote_asset(.:format)      |  v1  |  get money  \n       PUT  |  /api/:version/banknote_asset/:id(.:format)  |  v1  |  update cash\n```\nYou can find out what banknotes the ATM has:\n```\ncurl http://localhost:3000/api/v1/banknote_asset.json\n```\nGet any amount (if possible):\n```\ncurl -X PATCH http://localhost:3000/api/v1/banknote_asset.json -d \"sum=666\"\n```\nTop up banknotes:\n```\ncurl -X PUT http://localhost:3000/api/v1/banknote_asset/1.json -d \"banknote1=10\u0026banknote2=10\u0026banknote5=10\u0026banknote10=10\u0026banknote25=10\u0026banknote50=10\"\n```\nHope this helps. You won't get real money, but knowledge is cool. :)\n\n[Description](https://masterpro.ws/api-atm-on-grape-ruby-on-rails) (in Russian).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmirnow%2Fatm-on-grape","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmirnow%2Fatm-on-grape","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmirnow%2Fatm-on-grape/lists"}