{"id":24745829,"url":"https://github.com/vfsoraki/phoenix-banking-example","last_synced_at":"2026-05-09T15:34:11.238Z","repository":{"id":195490370,"uuid":"363696138","full_name":"vfsoraki/phoenix-banking-example","owner":"vfsoraki","description":"An example for Phoenix framework that simulates a bank API","archived":false,"fork":false,"pushed_at":"2021-05-02T18:59:09.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T00:24:04.009Z","etag":null,"topics":["elixir","phoenix-framework"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/vfsoraki.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}},"created_at":"2021-05-02T16:23:33.000Z","updated_at":"2021-05-02T19:00:52.000Z","dependencies_parsed_at":"2023-09-18T08:43:53.761Z","dependency_job_id":null,"html_url":"https://github.com/vfsoraki/phoenix-banking-example","commit_stats":null,"previous_names":["vfsoraki/phoenix-banking-example"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vfsoraki/phoenix-banking-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfsoraki%2Fphoenix-banking-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfsoraki%2Fphoenix-banking-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfsoraki%2Fphoenix-banking-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfsoraki%2Fphoenix-banking-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vfsoraki","download_url":"https://codeload.github.com/vfsoraki/phoenix-banking-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vfsoraki%2Fphoenix-banking-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32824383,"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":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"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":["elixir","phoenix-framework"],"created_at":"2025-01-28T03:29:53.892Z","updated_at":"2026-05-09T15:34:11.218Z","avatar_url":"https://github.com/vfsoraki.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Banking\n\nAn example API using Phoenix framework, that simulates a banking API.\n\nTo start the server:\n\n  * Install dependencies with `mix deps.get`\n  * Create and migrate your database with `mix ecto.setup`\n  * Start Phoenix endpoint with `mix phx.server`\n\nNow you can test the api at `localhost:4000`.\n\nTo see how to use the API, see the tests at `test/banking_web/controllers/v1/accounts_controllers_test.exs`.\n\nAll APIs return HTTP 200 if they're successful, or 400 in case of parameter/validation error.\n\nIn case of HTTP 200, the requested entity/entities are returned directly.\n\nIn case of HTTP 400, the response has the following format:\n\n```\n{\n    \"status\" =\u003e \"failed\",\n    \"errors\" =\u003e [\n        # an object\n        {\u003cerror_key\u003e =\u003e [\u003cerror_message\u003e, \u003cerror_message\u003e]},\n        # or just a string\n        \u003cerror_message\u003e\n        ...\n    ]\n}\n```\n\nThere is no authentication/authorization mechanism implemented. This is solely an example for\nPhoenix framework, not an example on how to implement a banking system.\n\nReference of the API:\n\n- `POST /api/v1/accounts`: Registers a user\n- `GET /api/v1/accounts/:id`: Returns information of a user\n- `POST /api/v1/accounts/:id/banking`: Opens a banking account for the user\n- `GET /api/v1/accounts/:id/banking/:account_id`: Returns information about a banking account of a user\n- `GET /api/v1/accounts/:id/banking/:account_id/transactions`: Returns information about transactions of a banking account of a user\n- `POST /api/v1/accounts/:id/banking/:account_id`: Withdraw/deposit from an account.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvfsoraki%2Fphoenix-banking-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvfsoraki%2Fphoenix-banking-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvfsoraki%2Fphoenix-banking-example/lists"}