File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed
Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,18 @@ Release names follow the **historic football clubs** naming convention (A–Z):
4040
4141## [ Unreleased]
4242
43+ ### Added
44+
45+ ### Changed
46+
47+ ### Fixed
48+
49+ ### Removed
50+
51+ ---
52+
53+ ## [ 2.0.0 - Barcelona] - 2026-04-06
54+
4355### Changed
4456
4557- Normalize data-state vocabulary in BDD-style test names: rename 12 ` given* `
@@ -66,6 +78,10 @@ Release names follow the **historic football clubs** naming convention (A–Z):
6678- ` PUT /players/{squadNumber} ` and ` DELETE /players/{squadNumber} ` : path
6779 variable changed from ` Long id ` to ` Integer squadNumber ` (#268 )
6880- ` GET /players/{id} ` : path variable changed from ` Long ` to ` UUID ` (#268 )
81+
82+ ** BREAKING CHANGE** : ` PUT /players/{id} ` and ` DELETE /players/{id} ` routes
83+ replaced by ` PUT /players/{squadNumber} ` and ` DELETE /players/{squadNumber} ` ;
84+ ` GET /players/{id} ` path variable type changed from ` Long ` to ` UUID ` (#268 )
6985- ` storage/players-sqlite3.db ` : schema migrated to ` id VARCHAR(36) PRIMARY KEY ` ,
7086 ` squadNumber INTEGER NOT NULL UNIQUE ` ; 25 players preserved (#268 )
7187- ` ddl.sql ` and ` dml.sql ` : test schema and seed data updated for new structure (#268 )
Original file line number Diff line number Diff line change @@ -143,12 +143,12 @@ Interactive API documentation is available via Swagger UI at `http://localhost:9
143143| Method | Endpoint | Description | Status |
144144| ------ | -------- | ----------- | ------ |
145145| ` GET ` | ` /players ` | List all players | ` 200 OK ` |
146- | ` GET ` | ` /players/{id} ` | Get player by ID | ` 200 OK ` |
146+ | ` GET ` | ` /players/{id} ` | Get player by UUID | ` 200 OK ` |
147147| ` GET ` | ` /players/search/league/{league} ` | Search players by league | ` 200 OK ` |
148148| ` GET ` | ` /players/squadnumber/{squadNumber} ` | Get player by squad number | ` 200 OK ` |
149149| ` POST ` | ` /players ` | Create new player | ` 201 Created ` |
150- | ` PUT ` | ` /players/{id } ` | Update player by ID | ` 204 No Content ` |
151- | ` DELETE ` | ` /players/{id } ` | Remove player by ID | ` 204 No Content ` |
150+ | ` PUT ` | ` /players/{squadNumber } ` | Update player by squad number | ` 204 No Content ` |
151+ | ` DELETE ` | ` /players/{squadNumber } ` | Remove player by squad number | ` 204 No Content ` |
152152| ` GET ` | ` /actuator/health ` | Health check | ` 200 OK ` |
153153
154154Error codes: ` 400 Bad Request ` (validation failed) · ` 404 Not Found ` (player not found) · ` 409 Conflict ` (duplicate squad number on ` POST ` )
You can’t perform that action at this time.
0 commit comments