{"id":26088694,"url":"https://github.com/fey/wallets_api","last_synced_at":"2026-07-19T11:40:18.928Z","repository":{"id":281219283,"uuid":"944111247","full_name":"fey/wallets_api","owner":"fey","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-07T16:21:18.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-07T17:28:37.684Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/fey.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":"2025-03-06T20:00:13.000Z","updated_at":"2025-03-07T16:21:22.000Z","dependencies_parsed_at":"2025-03-07T17:38:55.529Z","dependency_job_id":null,"html_url":"https://github.com/fey/wallets_api","commit_stats":null,"previous_names":["fey/wallets_api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fey%2Fwallets_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fey%2Fwallets_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fey%2Fwallets_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fey%2Fwallets_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fey","download_url":"https://codeload.github.com/fey/wallets_api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242661656,"owners_count":20165331,"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":[],"created_at":"2025-03-09T08:12:50.778Z","updated_at":"2025-10-19T09:55:24.968Z","avatar_url":"https://github.com/fey.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wallets_api\n\nREST API приложение, которое работает с базой данных и позволяет управлять балансом электронного кошелька.\n\n## Requirements\n\n* Ubuntu (Linux)\n* Make\n* Go 1.12.1+\n* Docker\n* k6 for testing\n\n## Usage\n\n```bash\ndocker pull ghcr.io/fey/wallets_api:latest\n```\n\nStart:\n\n```bash\ndocker run \\\n    --rm \\\n    --name wallets_api \\\n    -p 8080:8080 \\\n    -v ($pwd)/path/to/config:/app/config.env\n    ghcr.io/fey/wallets_api\n```\n\nFor Docker Compose see [Makefile](./Makefile)\n\n## API\n\n## Wallet\n\n```bash\ncurl localhost:8080/api/v1/wallets/550e8400-e29b-41d4-a716-446655440000\n```\n\nResponse:\n\n```json\n{\"wallet_id\":\"550e8400-e29b-41d4-a716-446655440000\",\"balance\":1100}\n```\n\n### Operations\n\nDeposit:\n\n```bash\ncurl -X POST http://localhost:8080/api/v1/wallets -H \"Content-Type: application/json\" -d '{\n    \"walletId\": \"550e8400-e29b-41d4-a716-446655440000\",\n    \"operationType\": \"DEPOSIT\",\n    \"amount\": 1000\n}'\n```\n\nWithdraw:\n\n```bash\ncurl -X POST http://localhost:8080/api/v1/wallets -H \"Content-Type: application/json\" -d '{\n    \"walletId\": \"550e8400-e29b-41d4-a716-446655440000\",\n    \"operationType\": \"WITHDRAW\",\n    \"amount\": 1000\n}'\n```\n\nResponse:\n\n```json\n{\"wallet_id\":\"550e8400-e29b-41d4-a716-446655440000\",\"balance\":2100}\n```\n\nFor more see [swagger.yaml](./docs/swagger.yaml) or `\u003capp_url\u003e/swagger/index.html`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffey%2Fwallets_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffey%2Fwallets_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffey%2Fwallets_api/lists"}