From 11779016988ae5d2541a0663ffc500ec501ecde1 Mon Sep 17 00:00:00 2001 From: masterelmar <18119527+masterElmar@users.noreply.github.com> Date: Wed, 13 Dec 2023 10:37:57 +0100 Subject: [PATCH] fix:#82 updated readme sports endpoint --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 67fa014..4db9b2b 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,32 @@ Stay for this time on the page and wait for the response. http://127.0.0.1/api/fetch/events +After you fetched the events you can optional fetch sport events. +This will scrape the sport events from the HTWK website and store them in the database. +This will take a few seconds (2s-10s). + +http://127.0.0.1/api/fetch/sports + + ### View/Filter/Search in Admin UI If you want some easy first api endpoints and data views, you can use the Admin UI. + + +### Schedules + +In our project we used schedules to fetch data from HTWK and store it in the database. +So they get periodically executed and keep the database up to date. + +You can find the schedules in the following directory: + +``` +service/addSchedule.go +``` + +Currently, there are 3 schedules: + +- FetchGroupsSchedule +- FetchEventsSchedule +- FetchSportsSchedule +