Feature: REST API for Grocery Module with JSON-LD #13
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
psycodepath/hrp#13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Motivation
Expose Grocery lists, items, and catalog products to external consumers.
Description
Create REST API endpoints under
/api/v1/grocery/*for grocery lists, items, and pantry control with pagination and JSON-LD contexts.User Story
As an API consumer, I want to manage grocery lists and catalog products programmatically so that I can build custom mobile/smart-home lists.
Gherkin Feature
Acceptance Criteria
GET /api/v1/grocery/lists(paginated collection of grocery lists).GET /api/v1/grocery/lists/{id}(item view of a grocery list containing its items).POST /api/v1/grocery/lists(create a new list).POST /api/v1/grocery/lists/{id}/add(add an item).POST /api/v1/grocery/lists/{listId}/toggle/{id}(toggle item bought status).GET /api/v1/grocery/catalog(paginated list of catalog products).