Feature: REST API for Meals Module with JSON-LD #14

Closed
opened 2026-07-04 21:32:10 +00:00 by psycodepath · 0 comments
Owner

Motivation

Expose meal planning and recipes to REST API clients.

Description

Create endpoints /api/v1/meals/recipes and planning slot updates returning hypermedia-enabled JSON-LD representations.

User Story

As an API consumer, I want to retrieve recipes and add meals to slots via the API so that I can schedule meals from external calendar tools.

Gherkin Feature

Feature: Meals REST API
  As an API consumer
  I want to view recipes and meal plans
  So that I can integrate external services with my meal calendar

Acceptance Criteria

  • GET /api/v1/meals/recipes (paginated, searchable list of recipes).
  • GET /api/v1/meals/recipes/{id} (single recipe details with ingredients).
  • POST /api/v1/meals/plan (plan a meal in a slot).
  • Integration tests for recipes and meal plans.
### Motivation Expose meal planning and recipes to REST API clients. ### Description Create endpoints `/api/v1/meals/recipes` and planning slot updates returning hypermedia-enabled JSON-LD representations. ### User Story As an API consumer, I want to retrieve recipes and add meals to slots via the API so that I can schedule meals from external calendar tools. ### Gherkin Feature ```gherkin Feature: Meals REST API As an API consumer I want to view recipes and meal plans So that I can integrate external services with my meal calendar ``` ### Acceptance Criteria - [ ] `GET /api/v1/meals/recipes` (paginated, searchable list of recipes). - [ ] `GET /api/v1/meals/recipes/{id}` (single recipe details with ingredients). - [ ] `POST /api/v1/meals/plan` (plan a meal in a slot). - [ ] Integration tests for recipes and meal plans.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
psycodepath/hrp#14
No description provided.