Implement a new service for fetching meue from "Götasalen" #964

Open
opened 2026-05-15 09:52:56 +00:00 by a22erigr · 0 comments
Collaborator

Description

We should implement a service to fetch the menu for Götasalen. We have asked for permission to use götasalen endpoint but have not recived a reply yet. Because of this limitation we should create our own mock version of the ics file that the endpoint provides. The endpoint can be found here https://compass.mashie.matildaplatform.com/public/icalendar/Restaurang%20G%C3%B6tasalen/B138D3BD.ics. The thought behind this is that we could if/when we get permission replace the mock file with the real file without any major problems.

What should be done

  • Create general service structure
  • Create a function that generates a new mock ics file
    • The file should follow Götasalens standard
  • The data should be cached in a database after the first fetch.
    • This should be done to minimize API requests when we use the real version
    • To reduce the need to convert the data from ics to json each request.
    • IMPORTANT. Do sencetive data should be cached.
  • It should be possible to fetch following data
    • Get a full week
    • Get this day
    • Get veterinarian full week
    • Get veterinarian day
## Description We should implement a service to fetch the menu for Götasalen. We have asked for permission to use götasalen endpoint but have not recived a reply yet. Because of this limitation we should create our own mock version of the ics file that the endpoint provides. The endpoint can be found here https://compass.mashie.matildaplatform.com/public/icalendar/Restaurang%20G%C3%B6tasalen/B138D3BD.ics. The thought behind this is that we could if/when we get permission replace the mock file with the real file without any major problems. ## What should be done + [ ] Create general service structure + [ ] Create a function that generates a new mock ics file + [ ] The file should follow Götasalens standard + [ ] The data should be cached in a database after the first fetch. + [ ] This should be done to minimize API requests when we use the real version + [ ] To reduce the need to convert the data from ics to json each request. + [ ] IMPORTANT. Do sencetive data should be cached. + [ ] It should be possible to fetch following data + [ ] Get a full week + [ ] Get this day + [ ] Get veterinarian full week + [ ] Get veterinarian day
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Andras/BoundlessFlowCampus2K#964
No description provided.