Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📦 Products API

A RESTful API built with Java and Spring Boot for managing a product catalog.


🚀 About

This project was developed to practice backend development using Spring Boot.

The API follows REST principles and implements a complete CRUD for product management while applying concepts such as layered architecture, dependency injection, entity mapping, and data persistence with Spring Data JPA.


🛠️ Tech Stack

  • Java 17+
  • Spring Boot
  • Spring Data JPA
  • Hibernate
  • H2 Database
  • Maven

✨ Features

  • ✅ Create products
  • ✅ Retrieve all products
  • ✅ Retrieve a product by ID
  • ✅ Update existing products
  • ✅ Delete products
  • ✅ RESTful architecture
  • ✅ Layered architecture (Controller, Service and Repository)

📁 Project Structure

src
├── controller
├── model
├── repository
├── service
└── ProdutosApiApplication

📷 API Preview

Products API Preview

Creating a new product using the REST API with Postman.


📌 Endpoints

Method Endpoint Description
GET /produtos Retrieve all products
GET /produtos/{id} Retrieve a product by ID
POST /produtos Create a new product
PUT /produtos/{id} Update a product
DELETE /produtos/{id} Delete a product

▶️ Running the Project

Prerequisites

  • Java 17 or higher
  • Maven

Clone the repository

git clone https://github.com/thurdass/produtosapi.git

Enter the project folder

cd produtosapi

Run the application

mvn spring-boot:run

The application will be available at:

http://localhost:8080

📚 What I Learned

During the development of this project I practiced:

  • Building REST APIs with Spring Boot
  • CRUD operations
  • Spring Data JPA
  • Hibernate
  • Dependency Injection
  • Layered Architecture
  • Entity Mapping
  • HTTP Methods and Status Codes
  • Maven

📄 License

This project was developed for educational purposes as part of my backend development studies.

About

REST API built with Java and Spring Boot.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages