Skip to content

Feature/rest for grocery list#63

Merged
timn21 merged 4 commits into
mainfrom
feature/REST-for-grocery-list
Jun 12, 2026
Merged

Feature/rest for grocery list#63
timn21 merged 4 commits into
mainfrom
feature/REST-for-grocery-list

Conversation

@JonathanPschl

@JonathanPschl JonathanPschl commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Adds read-only REST endpoints to grocery-service for retrieving stored grocery lists, backed by JPA against grocery-db, and wires them into the OpenAPI docs.

Endpoints
All routed through the api-gateway and protected by the gateway JWT filter.
GET getHistory
GET findById

Changes

  • Entities: GroceryList, GroceryItem, GroceryCategory
  • Repository: GroceryListRepository with findTop20ByOrderByCreatedAtDesc
  • Service: maps entities to DTOs, throws 404 for unknown ids
  • DTOs: keep entities out of the API surface
  • OpenAPI: GroceryListController annotated so endpoints render under a "Grocery Lists" tag with
    bearerAuth + documented responses
  • Config: gateway route + datasource/JPA properties for grocery-db

@timn21 timn21 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good

@timn21 timn21 merged commit 052f98d into main Jun 12, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants