fix:#82 updated readme sports endpoint

This commit is contained in:
masterelmar
2023-12-13 10:37:57 +01:00
parent 96873a3260
commit 1177901698

View File

@ -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