Recipe Book
Pantry
Pantry endpoints for the Smart Recipe Book
These are authenticated endpoints. You can visit authentication to register an account.
These endpoints allow you to manage your personal pantry — items you have on hand. All endpoints are scoped to the currently authenticated user.
These endpoints support pagination and sorting. Read more about these features here.
The Pantry Item model
| Prop | Type | Default |
|---|---|---|
id | string | - |
name | string | - |
quantity | number | - |
unit | string | - |
category | string | - |
owner | Profile | - |
created | Date | - |
updated | Date | - |
Get all pantry items
GET/recipe-book/pantry
Retrieve all pantry items for the currently authenticated user.
Create pantry item
POST/recipe-book/pantry
Add a new item to your pantry.
Update pantry item
PUT/recipe-book/pantry/<id>
Update a pantry item by its id. Only the owner can update it. You must provide at least one field to update.
Delete pantry item
DELETE/recipe-book/pantry/<id>
Delete a pantry item by its id. Only the owner can delete it.
Returns an empty 204 No Content response on success.