mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-07-16 09:38:49 +02:00
fix:#82 updated readme sports endpoint
This commit is contained in:
26
README.md
26
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
|
||||
|
||||
|
Reference in New Issue
Block a user