mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-25 08:09:41 +02:00
feat: recipe timeline backend api (#1685)
* added recipe_timeline_events table to db * added schema and routes for recipe timeline events * added missing mixin and fixed update schema * added tests * adjusted migration revision tree * updated alembic revision test * added initial timeline event for new recipes * added additional tests * added event bus support * renamed event_dt to timestamp * add timeline_events to ignore list * run code-gen * use new test routes implementation * use doc string syntax * moved event type enum from db to schema Co-authored-by: Hayden <64056131+hay-kot@users.noreply.github.com>
This commit is contained in:
parent
714a080ecb
commit
6ee64535df
19 changed files with 639 additions and 6 deletions
|
@ -364,6 +364,16 @@ def recipes_slug_image(slug):
|
|||
return f"{prefix}/recipes/{slug}/image"
|
||||
|
||||
|
||||
def recipes_slug_timeline_events(slug):
|
||||
"""`/api/recipes/{slug}/timeline/events`"""
|
||||
return f"{prefix}/recipes/{slug}/timeline/events"
|
||||
|
||||
|
||||
def recipes_slug_timeline_events_item_id(slug, item_id):
|
||||
"""`/api/recipes/{slug}/timeline/events/{item_id}`"""
|
||||
return f"{prefix}/recipes/{slug}/timeline/events/{item_id}"
|
||||
|
||||
|
||||
def shared_recipes_item_id(item_id):
|
||||
"""`/api/shared/recipes/{item_id}`"""
|
||||
return f"{prefix}/shared/recipes/{item_id}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue