A simple RESTful API built with Java and Spring Boot, focused on learning backend development fundamentals.
This application simulates user management operations such as create, read, update, and delete (CRUD), using a mocked repository layer (no database integration).
The project follows a layered architecture pattern:
Controller โ Service โ Repository (Mocked)
- Controller Layer โ Handles HTTP requests and REST endpoints
- Service Layer โ Contains business logic
- Repository Layer โ Simulates data persistence using an in-memory structure
| Method | Endpoint | Description |
|---|---|---|
| POST | /users |
Create a new user |
| GET | /users |
Retrieve all users |
| GET | /users/{id} |
Retrieve user by ID |
| PUT | /users/{id} |
Update a user |
| DELETE | /users/{id} |
Delete a user |
- Practice REST API development with Spring Boot
- Understand layered architecture concepts
- Learn HTTP methods and REST conventions
- Simulate data persistence without a database
mvn spring-boot:run