bilhej/backend/src/test/java/se/bilhalsning
Joakim Mörling 55f0fd8771 feat: add POST /api/orders endpoint with validation
- Create CreateOrderRequest DTO with jakarta.validation annotations
- Validate plate format (ABC123 or ABC12A) via @Pattern regex
- Validate letter text: @NotBlank, @Size(min=1, max=1000)
- Validate template name: optional, @Size(max=50)
- Add POST /api/orders endpoint to OrderController (auth required)
- Return 201 Created with OrderResponse on success
- Add 5 controller tests: no auth (403), create success, invalid plate,
  empty text, text over 1000 chars
- All messages in Swedish (Ogiltigt registreringsnummer, Brevtext krävs, etc.)
2026-05-14 15:45:47 +02:00
..
config feat: implement JWT authentication — service, filter, SecurityFilterChain 2026-05-01 17:38:17 +02:00
controller feat: add POST /api/orders endpoint with validation 2026-05-14 15:45:47 +02:00
repository feat: implement JWT authentication — service, filter, SecurityFilterChain 2026-05-01 17:38:17 +02:00
security feat: add admin role support to backend JWT authentication 2026-05-14 12:38:55 +02:00
service feat: add Order entity, repository, and service with TDD tests 2026-05-14 14:34:14 +02:00
BilHejApplicationTests.java feat: scaffold Spring Boot 4 backend with Gradle, Flyway, and H2 2026-05-01 00:28:10 +02:00
FlywayMigrationTest.java feat: implement JWT authentication — service, filter, SecurityFilterChain 2026-05-01 17:38:17 +02:00