{"id":19749268,"url":"https://github.com/pablosilvab/demo-backend-spring-boot","last_synced_at":"2026-04-13T05:51:14.173Z","repository":{"id":122500438,"uuid":"284861881","full_name":"pablosilvab/demo-backend-spring-boot","owner":"pablosilvab","description":"Backend build with Spring Boot ","archived":false,"fork":false,"pushed_at":"2023-04-17T03:18:59.000Z","size":133,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T21:21:29.741Z","etag":null,"topics":["heroku","java","maven","spring","spring-boot","springboot"],"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/pablosilvab.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":"2020-08-04T02:56:13.000Z","updated_at":"2023-01-17T02:57:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb2e86c0-7501-40a5-8a43-0ab39b75a496","html_url":"https://github.com/pablosilvab/demo-backend-spring-boot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pablosilvab%2Fdemo-backend-spring-boot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pablosilvab%2Fdemo-backend-spring-boot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pablosilvab%2Fdemo-backend-spring-boot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pablosilvab%2Fdemo-backend-spring-boot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pablosilvab","download_url":"https://codeload.github.com/pablosilvab/demo-backend-spring-boot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241078959,"owners_count":19905966,"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":["heroku","java","maven","spring","spring-boot","springboot"],"created_at":"2024-11-12T02:25:50.701Z","updated_at":"2025-12-31T01:13:14.649Z","avatar_url":"https://github.com/pablosilvab.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Demo Spring Boot API\n\nThis project is a **REST API** for managing products, built using **Spring Boot** and **Java 17**.\n\n## 🚀 Technologies Used\n\n- **Java 21**\n- **Spring Boot 3.4.3**\n- **Spring Data JPA** (for database interaction)\n- **Spring Validation** (for request validation)\n- **MapStruct 1.6.0** (for object mapping)\n- **Lombok** (to reduce boilerplate code)\n- **Swagger** (for API documentation)\n- **Docker** (for containerization)\n\n## 📌 Features\n\nThis API provides the following endpoints:\n\n| Method | Endpoint                     | Description                  |\n|--------|------------------------------|------------------------------|\n| GET    | `/api/v1/products`           | Retrieve all products        |\n| GET    | `/api/v1/products/{id}`      | Retrieve a product by ID     |\n| POST   | `/api/v1/products`           | Create a new product        |\n| PUT    | `/api/v1/products/{id}`      | Update an existing product  |\n| DELETE | `/api/v1/products/{id}`      | Delete a product            |\n\n## 🛠️ Setup and Usage\n\n### 1️⃣ Clone the repository\n```bash\ngit clone https://github.com/your-username/demo-backend-spring-boot.git\ncd demo-backend-spring-boot\n```\n\n### 2️⃣ Run with Maven\n```bash\nmvn spring-boot:run\n```\n\n### 3️⃣ Run with Docker\n\n#### Build the Docker image\n```bash\ndocker build -t demo-backend-spring-boot .\n```\n\n#### Run Docker services\n```bash\ndocker-compose up -d\n```\n\n#### Push Docker image\n```bash\ndocker tag demo-backend-spring-boot pablon27/demo-backend-spring-boot:1.0.0\ndocker push pablon27/demo-backend-spring-boot:1.0.0\n```\n\n\n### 4️⃣ API Usage Example\n#### Create a Product (POST `/api/v1/products`)\n```json\n{\n    \"name\": \"SoundBar\",\n    \"description\": \"High-quality sound system\",\n    \"price\": 15000,\n    \"stock\": 50\n}\n```\n\n#### Get a Product by ID (GET `/api/v1/products/1`)\n```json\n{\n    \"id\": 1,\n    \"name\": \"SoundBar\",\n    \"description\": \"High-quality sound system\",\n    \"price\": 15000,\n    \"stock\": 50\n}\n```\n\n## 📄 API Documentation\nYou can explore and test the API using **Swagger UI**:\n```\nhttp://localhost:8080/swagger-ui/index.html\n```\n\n## ✅ License\nThis project is open-source and available under the [MIT License](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpablosilvab%2Fdemo-backend-spring-boot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpablosilvab%2Fdemo-backend-spring-boot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpablosilvab%2Fdemo-backend-spring-boot/lists"}