mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-04 06:53:12 -05:00
docs: Misc. cleanup (#6988)
This commit is contained in:
@@ -6,7 +6,7 @@ While this guide aims to simplify the migration process for developers, it's not
|
|||||||
|
|
||||||
## V1 → V2
|
## V1 → V2
|
||||||
|
|
||||||
The biggest change between V1 and V2 is the introduction of Households. For more information on how households work in relation to groups/users, check out the [Groups and Households](./features.md#groups-and-households) section in the Features guide.
|
The biggest change between V1 and V2 is the introduction of Households. For more information on how households work in relation to groups/users, check out the [Groups and Households](../../documentation/getting-started/features.md#groups-and-households) section in the Features guide.
|
||||||
|
|
||||||
### `updateAt` is now `updatedAt`
|
### `updateAt` is now `updatedAt`
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ Recipes extras are a key feature of the Mealie API. They allow you to create cus
|
|||||||
For example you could add `{"message": "Remember to thaw the chicken"}` to a recipe and use the webhooks built into mealie to send that message payload to a destination to be processed.
|
For example you could add `{"message": "Remember to thaw the chicken"}` to a recipe and use the webhooks built into mealie to send that message payload to a destination to be processed.
|
||||||
|
|
||||||
#### Shopping List and Food Extras
|
#### Shopping List and Food Extras
|
||||||
Similarly to recipes, extras are supported on shopping lists, shopping list items, and foods. At this time they are only accessible through the API. Extras for these objects allow for rich integrations between the Mealie shopping list and your favorite list manager, such as Alexa, ToDoist, Trello, or any other list manager with an API.
|
Similarly to recipes, extras are supported on shopping lists, shopping list items, and foods. At this time they are only accessible through the API. Extras for these objects allow for rich integrations between the Mealie shopping list and your favorite list manager, such as Todoist, Trello, or any other list manager with an API.
|
||||||
|
|
||||||
To keep shopping lists in sync, for instance, you can store your Trello list id on your Mealie shopping list: <br />
|
To keep shopping lists in sync, for instance, you can store your Trello list id on your Mealie shopping list: <br />
|
||||||
`{"trello_list_id": "5abbe4b7ddc1b351ef961414"}`
|
`{"trello_list_id": "5abbe4b7ddc1b351ef961414"}`
|
||||||
@@ -52,6 +52,7 @@ Many applications will keep track of the query and adjust the page parameter app
|
|||||||
Notice that the route does not contain the baseurl (e.g. `https://mymealieapplication.com/api`).
|
Notice that the route does not contain the baseurl (e.g. `https://mymealieapplication.com/api`).
|
||||||
|
|
||||||
There are a few shorthands available to reduce the number of calls for certain common requests:
|
There are a few shorthands available to reduce the number of calls for certain common requests:
|
||||||
|
|
||||||
- if you want to return _all_ results, effectively disabling pagination, set `perPage = -1` (and fetch the first page)
|
- if you want to return _all_ results, effectively disabling pagination, set `perPage = -1` (and fetch the first page)
|
||||||
- if you want to fetch the _last_ page, set `page = -1`
|
- if you want to fetch the _last_ page, set `page = -1`
|
||||||
|
|
||||||
@@ -96,10 +97,12 @@ You can use placeholders to insert dynamic values as opposed to static values. C
|
|||||||
`lastMade <= "$NOW-30d"`
|
`lastMade <= "$NOW-30d"`
|
||||||
|
|
||||||
Supported offsets operations include:
|
Supported offsets operations include:
|
||||||
|
|
||||||
- `-` for subtracting a time (i.e. in the past)
|
- `-` for subtracting a time (i.e. in the past)
|
||||||
- `+` for adding a time (i.e. in the future)
|
- `+` for adding a time (i.e. in the future)
|
||||||
|
|
||||||
Supported offset intervals include:
|
Supported offset intervals include:
|
||||||
|
|
||||||
- `y` for years
|
- `y` for years
|
||||||
- `m` for months
|
- `m` for months
|
||||||
- `d` for days
|
- `d` for days
|
||||||
@@ -116,7 +119,7 @@ When querying tables with relationships, you can filter properties on related ta
|
|||||||
This timeline event filter will return all timeline events for recipes that were created after a particular date: <br>
|
This timeline event filter will return all timeline events for recipes that were created after a particular date: <br>
|
||||||
`recipe.createdAt >= "2023-02-25"`
|
`recipe.createdAt >= "2023-02-25"`
|
||||||
|
|
||||||
This recipe filter will return all recipes that contains a particular set of tags: <br>
|
This recipe filter will return all recipes that contain a particular set of tags: <br>
|
||||||
`tags.name CONTAINS ALL ["Easy", "Cajun"]`
|
`tags.name CONTAINS ALL ["Easy", "Cajun"]`
|
||||||
|
|
||||||
##### Compound Filters
|
##### Compound Filters
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user