{"id":27039688,"url":"https://github.com/jotabrc/demo-bank-api","last_synced_at":"2026-04-12T05:34:49.915Z","repository":{"id":283290031,"uuid":"950933137","full_name":"jotabrc/demo-bank-api","owner":"jotabrc","description":"Demo Project of RESTful API simulating an Bank","archived":false,"fork":false,"pushed_at":"2025-03-19T23:52:36.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T00:28:15.742Z","etag":null,"topics":["demo-app","java","jwt-authentication","lombok","maven","postgresql","railway","spring","spring-boot","spring-security","spring-web"],"latest_commit_sha":null,"homepage":"","language":"Java","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/jotabrc.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-18T22:53:37.000Z","updated_at":"2025-03-19T23:52:39.000Z","dependencies_parsed_at":"2025-03-19T13:41:26.873Z","dependency_job_id":"b1e2109d-1bb0-47e1-acaf-7e344785514c","html_url":"https://github.com/jotabrc/demo-bank-api","commit_stats":null,"previous_names":["jota-br/demo-bank-api","jotabrc/demo-bank-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jotabrc/demo-bank-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jotabrc%2Fdemo-bank-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jotabrc%2Fdemo-bank-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jotabrc%2Fdemo-bank-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jotabrc%2Fdemo-bank-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jotabrc","download_url":"https://codeload.github.com/jotabrc/demo-bank-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jotabrc%2Fdemo-bank-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31705574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-12T05:11:36.334Z","status":"ssl_error","status_checked_at":"2026-04-12T05:11:27.332Z","response_time":58,"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":["demo-app","java","jwt-authentication","lombok","maven","postgresql","railway","spring","spring-boot","spring-security","spring-web"],"created_at":"2025-04-05T03:17:58.274Z","updated_at":"2026-04-12T05:34:49.885Z","avatar_url":"https://github.com/jotabrc.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# demo Bank RESTful API\n\n- Spring Boot;\n- Spring Web;\n- Spring Security;\n  - JWT for security;\n- Spring Data JPA;\n- OpenAPI (Swagger) for endpoints documentation;\n- H2 database in development;\n- PostgresSQL in production;\n- Lombok for clean code;\n- Logback (Sl4j) for logging;\n- Deployment with Railway;\n\n## Usage\nAccess: `/swagger-ui/index.html` for endpoint JSON templates and more information on endpoints.\n- `POST` `/login` for authentication, retuns JWT toekn `Bearer`.\u003cbr/\u003e\n- `POST` `/register` user creation, retuns user with created accounts `SAVINGS` and `CHECKING` with balance 0.0 and `CHECKING` with `maxLimit` and `availableLimit` of `1000.00`.\u003cbr/\u003e\n  - `WITHDRAWAL` is only available for the account owner.\n  - `DEPOSIT` can be made to any valid account.\n- `POST` `/accounts` user must provider token for authentication obtained in the /login endpoint, and a account to DEPOSIT or WITHDRAWAL.\u003cbr/\u003e\n- `GET` `/users/{username}` retrieve user information.\n\u003cbr/\u003e\n\n## Diagram\n```mermaid\nerDiagram\n    USER {\n        long id\n        string username\n        string password\n        string salt\n        integer version\n    }\n    USER ||--o{ ACCOUNT : \"accounts\"\n\n    ACCOUNT {\n        long id\n        string accountNumber\n        BigDecimal balance\n        AccountType accountType\n        BigDecimal availableLimit\n        BigDecimal maxLimit\n    }\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjotabrc%2Fdemo-bank-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjotabrc%2Fdemo-bank-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjotabrc%2Fdemo-bank-api/lists"}