mobile-topwr icon indicating copy to clipboard operation
mobile-topwr copied to clipboard

feat(academic-calendar): replace graphql with REST

Open mikolaj-jalocha opened this issue 9 months ago • 1 comments

  • replace graphql's endpoint for buidlings with REST
  • docs can be found here: https://github.com/Solvro/backend-topwr

mikolaj-jalocha avatar Apr 06 '25 06:04 mikolaj-jalocha

So this task is not about changing anything visual-wise. We need to change the source of our data in exam session counter / academic calendar (whatever you call it).

Just see /lib/features/academic_calendar and you need to change /repository/ there to fetch data from our new REST API: https://api.topwr.solvro.pl/api/v1/ instead of current GraphQL API endpoint. The endpoint's documenatation is here: https://github.com/Solvro/backend-topwr

Briefly looking you need to use two endpoints https://api.topwr.solvro.pl/api/v1/academic_calendars and https://api.topwr.solvro.pl/api/v1/day_swaps but I might be wrong :P.

For reference you can see #673 Pull Request which basically did the same, but in the guide feature. Some elements prolly can be reused.

Please create a your branch from the dev branch.

In case of any question, please hit us up.

simon-the-shark avatar Apr 07 '25 13:04 simon-the-shark