{"id":26886381,"url":"https://github.com/heshanthenura/crudapi","last_synced_at":"2026-04-12T16:03:04.612Z","repository":{"id":235430543,"uuid":"790584868","full_name":"heshanthenura/CRUDAPI","owner":"heshanthenura","description":"This project is a simple CRUD (Create, Read, Update, Delete) API implemented using Spring Boot, Hibernate, and H2 database. It provides endpoints to manage information about people including their first name, last name, and age.","archived":false,"fork":false,"pushed_at":"2024-04-23T07:01:01.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-04-23T11:12:42.167Z","etag":null,"topics":["api","crud","java","springboot","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/heshanthenura.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}},"created_at":"2024-04-23T06:38:30.000Z","updated_at":"2024-04-23T11:12:46.549Z","dependencies_parsed_at":"2024-04-23T11:12:45.893Z","dependency_job_id":"83c87b7d-679f-4993-9aa4-10bb5cb9b5b7","html_url":"https://github.com/heshanthenura/CRUDAPI","commit_stats":null,"previous_names":["heshanthenura/crudapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heshanthenura%2FCRUDAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heshanthenura%2FCRUDAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heshanthenura%2FCRUDAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heshanthenura%2FCRUDAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heshanthenura","download_url":"https://codeload.github.com/heshanthenura/CRUDAPI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246523834,"owners_count":20791444,"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":["api","crud","java","springboot","web"],"created_at":"2025-03-31T19:18:38.444Z","updated_at":"2025-10-18T07:26:35.249Z","avatar_url":"https://github.com/heshanthenura.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# \u003ch1 align=\"center\"\u003eCRUD API with Spring Boot\u003c/h1\u003e\n## \u003ch2 align=\"center\"\u003eThis project is a simple CRUD (Create, Read, Update, Delete) API implemented using Spring Boot, Hibernate, and H2 database. It provides endpoints to manage information about people including their first name, last name, and age.\u003c/h2\u003e\n\n## ***Note:*** This project is intended as a reference and learning resource. Feel free to explore the code and modify it according to your requirements.\n\n## Features:\n*  *Get all people:* Retrieve a list of all people stored in the database.\n*  *Add a person*: Add a new person to the database with validation for required fields.\n*  *Update a person:* Update information about an existing person in the database.\n*  *Delete a person:* Remove a person from the database by their ID.\n\n## Technologies Used:\n* *Spring Boot:* For building the RESTful API and managing dependencies.\n* *Hibernate:* For ORM (Object-Relational Mapping) to interact with the H2 database.\n* *H2 Database:* An in-memory SQL database used for development and testing purposes.\n* *Jakarta Validation API:* For input validation and error handling.\n\n## Endpoints:\n* *GET /:* Retrieve all people.\n* *POST /add:* Add a new person. *(We have to use json object when sending data)*\n```json\n{\n  \"fname\":\"first_name\",\n  \"lname\":\"last_name\",\n  \"age\":\"age\"\n}\n```\n\n   \n      \n* *PUT /update/{id}:* Update information about an existing person *(We have to use json object when sending data)*.\n##### id of the user that you need to change the data and the new data that you need to update\n```json\n{\n  \"fname\":\"first_name\",\n  \"lname\":\"last_name\",\n  \"age\":\"age\"\n}\n```\n* *DELETE /delete/{id}:* Delete a person by their ID.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheshanthenura%2Fcrudapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheshanthenura%2Fcrudapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheshanthenura%2Fcrudapi/lists"}