Pain Point? Please describe.
The existing APIs are not ideal for the updates required for the Timeline view . A new query and API endpoint should be added to return the information needed for the timeline view. This issue will deal with the request for the Recipe Type timeline.
Desired Solution
Add the following REST API endpoint to recipe-type/urls.py: /recipe-types/timeline/
Update the recipe-type/views.py with a new RecipeTypeTimelineView
-- ListAPIView
-- Include parameters for recipe type ids, started/ended dates, revision numbers
Add method under RecipeType models.py to execute query to retrieve:
-- Date (all we care about is day. don't need separated by day/hour)
-- count (may need this in the future?)
-- Recipe type id
-- recipe type name
-- recipe type revision
-- recipe type title
Add serializer to return timeline information in the following format:
Pain Point? Please describe. The existing APIs are not ideal for the updates required for the Timeline view . A new query and API endpoint should be added to return the information needed for the timeline view. This issue will deal with the request for the Recipe Type timeline.
Desired Solution
/recipe-types/timeline/