Implement service to fetch menu from götasalen and portalen #844

Open
opened 2026-05-08 10:21:38 +00:00 by a22erigr · 0 comments
Collaborator

Description

At our last customer meeting it were decided that the dashboard should be able to show the menu for götasalen and portalen.
Because there API endpoint
https://compass.mashie.matildaplatform.com/public/icalendar/Restaurang%20G%C3%B6tasalen/B138D3BD.ics
https://compass.mashie.matildaplatform.com/public/icalendar/Portalen/72A15EC5.ics
(#700 (comment))
store the data in ICS it will need to be converted to json. We decided that this should be done in a service rather than doing it directly in the front-end. A other benefit of this is that we can save the result in a database, There by simplifying the retrieval and minimize api calls.

What should be done

  • Create a new service (Use our new script)
  • Implement following endpoints
    • GetWeek
    • GetDay
    • (More endpoints may be added in other issues)
  • Make it possible to fetch data from api.
    • If the data is not stored in the database you will need to fetch it and then store it.
    • It needs to be translated to json.
    • After translation save the result in a database. (A new one needs to be created)
    • Take care when designing the database.
      • It should be possible to fetch just one day or the entire week.
      • Only veterinarian alternatives?
        • Both for a single day and week
      • The developer may come with suggestions to team leader when it comes to design.
## Description At our last customer meeting it were decided that the dashboard should be able to show the menu for götasalen and portalen. Because there API endpoint https://compass.mashie.matildaplatform.com/public/icalendar/Restaurang%20G%C3%B6tasalen/B138D3BD.ics https://compass.mashie.matildaplatform.com/public/icalendar/Portalen/72A15EC5.ics (https://git.webug.se/Andras/BoundlessFlowCampus2K/issues/700#issuecomment-8659) store the data in ICS it will need to be converted to json. We decided that this should be done in a service rather than doing it directly in the front-end. A other benefit of this is that we can save the result in a database, There by simplifying the retrieval and minimize api calls. ## What should be done + Create a new service (Use our new script) + Implement following endpoints + GetWeek + GetDay + (More endpoints may be added in other issues) + Make it possible to fetch data from api. + If the data is not stored in the database you will need to fetch it and then store it. + It needs to be translated to json. + After translation save the result in a database. (A new one needs to be created) + Take care when designing the database. + It should be possible to fetch just one day or the entire week. + Only veterinarian alternatives? + Both for a single day and week + The developer may come with suggestions to team leader when it comes to design.
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#844
No description provided.