diegoborbadev / expense-manager

💸 Expense Manager
MIT License
1 stars 0 forks source link

Base Controller #11

Closed diegoborbadev closed 3 months ago

diegoborbadev commented 3 months ago

Implement a BaseController with CRUD endpoints for simple ID models.

Verb Description Endpoint Return Type
GET Get all elements /all ResponseEntity<List<DTO>>
GET Get all elements (with pagination) /all/pagination ResponseEntity<Page<DTO>>
GET Get element by id /{id} ResponseEntity<DTO>
POST Create a new element / ResponseEntity<DTO>
PUT Update a element /{id} ResponseEntity<DTO>
DELETE Delete a element /{id} ResponseEntity<Void>

Important: The endpoints should be documented using Springdocs.