{"id":19693055,"url":"https://github.com/christs8920/bankapp-restapi","last_synced_at":"2026-05-14T21:34:17.604Z","repository":{"id":190398967,"uuid":"672549912","full_name":"ChrisTs8920/BankApp-restAPI","owner":"ChrisTs8920","description":"An application for remote management of bank accounts. Made using RESTful web services.","archived":false,"fork":false,"pushed_at":"2024-08-03T10:04:51.000Z","size":2766,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T11:58:37.823Z","etag":null,"topics":["glassfish","java","mysql","rest-api","restful-api","webservices"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ChrisTs8920.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2023-07-30T13:17:12.000Z","updated_at":"2024-08-03T10:04:55.000Z","dependencies_parsed_at":"2025-02-27T09:59:16.473Z","dependency_job_id":"b441d097-b86a-4d94-b09e-1d90fbb3aadf","html_url":"https://github.com/ChrisTs8920/BankApp-restAPI","commit_stats":null,"previous_names":["christs8920/bank-restful-api","christs8920/bankapp-restapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ChrisTs8920/BankApp-restAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisTs8920%2FBankApp-restAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisTs8920%2FBankApp-restAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisTs8920%2FBankApp-restAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisTs8920%2FBankApp-restAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChrisTs8920","download_url":"https://codeload.github.com/ChrisTs8920/BankApp-restAPI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChrisTs8920%2FBankApp-restAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008444,"owners_count":26084459,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"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":["glassfish","java","mysql","rest-api","restful-api","webservices"],"created_at":"2024-11-11T19:15:35.716Z","updated_at":"2025-10-11T19:12:32.730Z","avatar_url":"https://github.com/ChrisTs8920.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bank Application - Java RESTful API\n\n## Description\n\nAn application for remote management of bank accounts. It was made using Java, Jakarta RESTful web services (JAX-RS API, Jersey implementation), MySQL (and JDBC API), IntelliJ IDEA Ultimate and Glassfish 6.2.4.  \n\n\u003e**Tested using Mozilla Firefox and Postman.**\n\n\u003e*This project was made during my Network programming course in University.*\n\n### The application offers the following actions\n\n1. Create account\n2. Deposit amount\n3. Withdraw amount\n4. Transfer to another account\n5. Enable/Disable account\n6. View details of an account (XML/JSON)\n7. View details of all accounts (XML/JSON)\n8. Delete account\n\n\u003e**For simplicity, we assume that the user can execute the above actions to any account simply by knowing the Account ID. (i.e without requiring any kind of authentication).**\n\n### Endpoints\n\n0. ```http://localhost:8080/BankApp-1.0-SNAPSHOT/``` ```//main page```\n\n1. ```http://localhost:8080/BankApp-1.0-SNAPSHOT/addAccount.html```\n\n2. ```http://localhost:8080/BankApp-1.0-SNAPSHOT/api/bankService/deposit/\u003caid\u003e?amount=\u003camount\u003e```\n\n3. ```http://localhost:8080/BankApp-1.0-SNAPSHOT/api/bankService/withdraw/\u003caid\u003e?amount=\u003camount\u003e```\n\n4. ```http://localhost:8080/BankApp-1.0-SNAPSHOT/api/bankService/transferBalance/\u003caid\u003e?aid2=\u003caid\u003e\u0026amount=\u003camount\u003e```\n\n5. ```http://localhost:8080/BankApp-1.0-SNAPSHOT/api/bankService/updateAccountStatus/\u003caid\u003e/\u003cstatus\u003e```\n\n6. ```http://localhost:8080/BankApp-1.0-SNAPSHOT/api/bankService/allAccounts_json/\u003caid\u003e```\n   ```http://localhost:8080/BankApp-1.0-SNAPSHOT/api/bankService/allAccounts_xml/\u003caid\u003e```\n\n7. ```http://localhost:8080/BankApp-1.0-SNAPSHOT/api/bankService/allAccounts_json```\n   ```http://localhost:8080/BankApp-1.0-SNAPSHOT/api/bankService/allAccounts_xml```\n\n8. ```http://localhost:8080/BankApp-1.0-SNAPSHOT/api/bankService/delete/\u003caid\u003e```\n\n\u003e*Where `\u003caid\u003e` insert the appropriate account id, and `\u003camount\u003e` insert the appropriate amount.*\n\n\u003e*`\u003cstatus\u003e` is either activate or deactivate.*\n\n### Database\n\nThe sql file creates the database **bank_accs** which contains the following table:\n\n| aid | name | surname | contactPhone | address | accBalance | activated |\n|-----|------|---------|--------------|---------|------------|-----------|\n| 10 | CHRIS | TSOUCHLAKIS | 6986868969 | Street 42 | 100 | 1 |\n| 11 | MARKOS | MARKOY | 6985368422 | Street 47 | 225 | 1 |\n| 12 | IWANNA | IWANNOY | 6976663345 | Street 107 | 150 | 1 |\n| 13 | IWANNHS | IWANNOY | 6977775569 | Street 107 | 10 | 1 |\n| 14 | GIWRGOS | GIWRGOY | 6966665544 | Street 21 | 1000 | 1 |\n\n\u003e**The database also creates a user named 'TSOUCHLAKIS' with password '1234', with all privileges granted. This user is required for the JDBC API to connect with the database.**\n\n## Requirements\n\n1. Glassfish (tested on version 6.2.4) or Tomcat\n2. MySQL installation\n3. JDBC API (included)\n4. JAX-RS API (included, also comes with Glassfish)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrists8920%2Fbankapp-restapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrists8920%2Fbankapp-restapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrists8920%2Fbankapp-restapi/lists"}