Commit Graph

2 Commits

Author SHA1 Message Date
Backend Agent 0c24a4345f fix: add /filters endpoint to resolve 500 error on GET /supplements/filters
Added GET /api/v1/supplements/filters returning distinct categories,
brands, and countries. Placed before /{id} mapping so Spring MVC
matches the exact path first. Previously "filters" was parsed as UUID,
causing IllegalArgumentException -> 500.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 14:23:32 +00:00
Backend Agent 506d1ba761 feat: initial nutri-api — Spring Boot REST API for supplement catalog
- Supplement and Ingredient entities with UUID primary keys
- CRUD REST API with pagination, filtering, and full-text search
- Liquibase migrations with PostgreSQL tsvector full-text index
- SpringDoc OpenAPI documentation
- RFC 7807 Problem Details error handling
- Unit tests for service, mapper, and controller layers (23 tests)
- Dockerfile (multi-stage) and docker-compose.yaml for local dev
- Application profiles: default, dev, prod
2026-04-10 17:03:09 +00:00