{"id":22427342,"url":"https://github.com/supwr/ebanx-test","last_synced_at":"2026-04-29T08:01:37.444Z","repository":{"id":104606731,"uuid":"499336036","full_name":"supwr/ebanx-test","owner":"supwr","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-04T00:48:24.000Z","size":197,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T06:44:32.877Z","etag":null,"topics":["nginx","php-fpm","php81"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/supwr.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":"2022-06-03T00:50:59.000Z","updated_at":"2022-06-04T00:57:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"58a3d054-de50-40a4-a8c0-2716a42f66cc","html_url":"https://github.com/supwr/ebanx-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/supwr/ebanx-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supwr%2Febanx-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supwr%2Febanx-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supwr%2Febanx-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supwr%2Febanx-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/supwr","download_url":"https://codeload.github.com/supwr/ebanx-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/supwr%2Febanx-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32416146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T06:29:02.080Z","status":"ssl_error","status_checked_at":"2026-04-29T06:29:00.631Z","response_time":110,"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":["nginx","php-fpm","php81"],"created_at":"2024-12-05T20:11:32.730Z","updated_at":"2026-04-29T08:01:37.400Z","avatar_url":"https://github.com/supwr.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Proposal\n\nThe API consists of two endpoints, GET /balance, and POST /event. Using your favorite programming language, build a system that can handle those requests.\n\n## Follow the steps bellow to get the application up and running\n\n### 1 - Build the app\n\n```$ make build```\n\n### 2 - Start the application\n\n```$ make start-app```\n\n### 3 - Setup and install the app dependencies\n\n```$ make setup```\n\n### 4 - To stop the application\n\n```$ make stop-app```\n\n## Requests\n\n### Reset accounts | POST /reset\n\n```\ncurl --location --request POST 'localhost:8080/reset' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n    \"type\": \"deposit\",\n    \"destination\": 100,\n    \"amount\": 10\n}'\n```\n\n### Make a deposit | POST /event\n\n```\ncurl --location --request POST 'localhost:8080/event' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n    \"type\": \"deposit\",\n    \"destination\": \"100\",\n    \"amount\": 1000\n}'\n```\n\n### Withdraw from account | POST /event\n\n```\ncurl --location --request POST 'localhost:8080/event' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n    \"type\": \"withdraw\",\n    \"origin\": \"100\",\n    \"amount\": 5\n}'\n```\n\n### Transfer to another account | POST /event\n\n```\ncurl --location --request POST 'localhost:8080/event' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n    \"type\": \"transfer\",\n    \"origin\": \"100\",\n    \"amount\": 15,\n    \"destination\": \"300\"\n}'\n```\n\n### Tests\n\nTo execute the unit tests\n\n```$ make run-tests```\n\nThis project has ~65% code coverage\n\n![Image](src/public/img/code-coverage.png?raw=true)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupwr%2Febanx-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsupwr%2Febanx-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsupwr%2Febanx-test/lists"}