{"id":15134292,"url":"https://github.com/rb555/restapi_springboot_h2","last_synced_at":"2026-01-18T19:10:16.891Z","repository":{"id":249529254,"uuid":"831758021","full_name":"rb555/restapi_springboot_h2","owner":"rb555","description":"A Spring Boot REST API with CRUD operations using an in-memory H2 database and Spring Data JPA for managing user data. Ideal for quick setup and testing.","archived":false,"fork":false,"pushed_at":"2024-10-30T13:36:40.000Z","size":1034,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T22:42:45.111Z","etag":null,"topics":["crud-api","database","h2-database","intellij-idea","java","maven","rest","rest-api","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rb555.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":"2024-07-21T14:44:40.000Z","updated_at":"2024-08-19T23:43:39.000Z","dependencies_parsed_at":"2024-10-31T13:32:37.382Z","dependency_job_id":null,"html_url":"https://github.com/rb555/restapi_springboot_h2","commit_stats":null,"previous_names":["rb555/restapi_springboot_h2"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rb555/restapi_springboot_h2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rb555%2Frestapi_springboot_h2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rb555%2Frestapi_springboot_h2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rb555%2Frestapi_springboot_h2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rb555%2Frestapi_springboot_h2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rb555","download_url":"https://codeload.github.com/rb555/restapi_springboot_h2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rb555%2Frestapi_springboot_h2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28549005,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T19:02:06.365Z","status":"ssl_error","status_checked_at":"2026-01-18T19:01:46.239Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["crud-api","database","h2-database","intellij-idea","java","maven","rest","rest-api","spring-boot"],"created_at":"2024-09-26T05:04:17.323Z","updated_at":"2026-01-18T19:10:16.868Z","avatar_url":"https://github.com/rb555.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003eREST API with H2 Database using Spring Boot\u003c/h1\u003e\n\n\u003cp\u003eThis project is a REST API that connects to an H2 database using Spring Boot.\u003c/p\u003e\n\n\u003ch2\u003eFeatures\u003c/h2\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003cspan style=\"color:green\"\u003eRESTful API with CRUD operations\u003c/span\u003e\u003c/li\u003e\n  \u003cli\u003e\u003cspan style=\"color:blue\"\u003eIn-memory H2 database for testing and development\u003c/span\u003e\u003c/li\u003e\n  \u003cli\u003e\u003cspan style=\"color:purple\"\u003eSpring Data JPA for database interaction\u003c/span\u003e\u003c/li\u003e\n  \u003cli\u003e\u003cspan style=\"color:orange\"\u003eMaven for dependency management\u003c/span\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch2\u003ePrerequisites\u003c/h2\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003cspan style=\"color:red\"\u003eJava 11 or higher\u003c/span\u003e\u003c/li\u003e\n  \u003cli\u003e\u003cspan style=\"color:brown\"\u003eMaven 3.6.3 or higher\u003c/span\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch2\u003eDependencies\u003c/h2\u003e\n\u003cp\u003eThe following dependencies are included in the \u003ccode\u003epom.xml\u003c/code\u003e:\u003c/p\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003cspan style=\"color:teal\"\u003eSpring Web\u003c/span\u003e\u003c/li\u003e\n  \u003cli\u003e\u003cspan style=\"color:gold\"\u003eSpring Dev Tools\u003c/span\u003e\u003c/li\u003e\n  \u003cli\u003e\u003cspan style=\"color:magenta\"\u003eH2 Database\u003c/span\u003e\u003c/li\u003e\n  \u003cli\u003e\u003cspan style=\"color:gray\"\u003eSpring Data JPA\u003c/span\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch2\u003eGetting Started\u003c/h2\u003e\n\u003ch3\u003eClone the Repository\u003c/h3\u003e\n\u003cpre\u003e\u003ccode\u003egit clone https://github.com/your-username/your-repo-name.git\ncd your-repo-name\n\u003c/code\u003e\u003c/pre\u003e\n\n\u003ch3\u003eBuild the Project\u003c/h3\u003e\n\u003cpre\u003e\u003ccode\u003emvn clean install\n\u003c/code\u003e\u003c/pre\u003e\n\n\u003ch3\u003eRun the Application\u003c/h3\u003e\n\u003cpre\u003e\u003ccode\u003emvn spring-boot:run\n\u003c/code\u003e\u003c/pre\u003e\n\u003cp\u003eThe application will start on \u003ccode\u003ehttp://localhost:8080\u003c/code\u003e.\u003c/p\u003e\n\n\u003ch2\u003eUsage\u003c/h2\u003e\n\u003ch3\u003eAPI Endpoints\u003c/h3\u003e\n\u003cp\u003eHere are some example endpoints for the \u003ccode\u003eUSERS\u003c/code\u003e table:\u003c/p\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003ccode\u003eGET /api/users\u003c/code\u003e - Retrieve all users\u003c/li\u003e\n  \u003cli\u003e\u003ccode\u003eGET /api/users/{id}\u003c/code\u003e - Retrieve a specific user by ID\u003c/li\u003e\n  \u003cli\u003e\u003ccode\u003ePOST /api/users\u003c/code\u003e - Create a new user\u003c/li\u003e\n  \u003cli\u003e\u003ccode\u003ePUT /api/users/{id}\u003c/code\u003e - Update an existing user by ID\u003c/li\u003e\n  \u003cli\u003e\u003ccode\u003eDELETE /api/users/{id}\u003c/code\u003e - Delete a user by ID\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch3\u003eExample Requests\u003c/h3\u003e\n\n\u003ch4\u003eGET /api/users\u003c/h4\u003e\n\u003cpre\u003e\u003ccode\u003ecurl -X GET http://localhost:8080/api/users\n\u003c/code\u003e\u003c/pre\u003e\n\n\u003ch4\u003ePOST /api/users\u003c/h4\u003e\n\u003cpre\u003e\u003ccode\u003ecurl -X POST http://localhost:8080/api/users -H \"Content-Type: application/json\" -d '{\"name\": \"New User\", \"email\": \"user@example.com\"}'\n\u003c/code\u003e\u003c/pre\u003e\n\n\u003ch2\u003eH2 Console\u003c/h2\u003e\n\u003cp\u003eYou can access the H2 database console at \u003ccode\u003ehttp://localhost:8080/h2-console\u003c/code\u003e. Use the following settings:\u003c/p\u003e\n\u003cul\u003e\n  \u003cli\u003e\u003cstrong\u003eJDBC URL\u003c/strong\u003e: \u003ccode\u003ejdbc:h2:mem:testdb\u003c/code\u003e\u003c/li\u003e\n  \u003cli\u003e\u003cstrong\u003eUsername\u003c/strong\u003e: \u003ccode\u003esa\u003c/code\u003e\u003c/li\u003e\n  \u003cli\u003e\u003cstrong\u003ePassword\u003c/strong\u003e: \u003cem\u003e(leave blank)\u003c/em\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch2\u003eContributing\u003c/h2\u003e\n\u003cp\u003eIf you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.\u003c/p\u003e\n\n\u003ch2\u003eLicense\u003c/h2\u003e\n\u003cp\u003eThis project is licensed under the Apache License 2.0 - see the \u003ca href=\"LICENSE\"\u003eLICENSE\u003c/a\u003e file for details.\u003c/p\u003e\n\n\u003ch2\u003eAcknowledgements\u003c/h2\u003e\n\u003cul\u003e\n  \u003cli\u003eSpring Boot documentation\u003c/li\u003e\n  \u003cli\u003eH2 Database documentation\u003c/li\u003e\n\u003c/ul\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frb555%2Frestapi_springboot_h2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frb555%2Frestapi_springboot_h2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frb555%2Frestapi_springboot_h2/lists"}