HASKI-RAK / HASKI-Backend

This is the Backend System for our HASKI project.
GNU Lesser General Public License v2.1
4 stars 1 forks source link

92 news are saved in the backend and can be fetched #98

Closed Platura closed 2 months ago

Platura commented 3 months ago

adds the necessary backend structure for the newsbanner. Contains a get_news function, that returns a news depending on the language and the university. Also takes into consideration if the news is still relevant via the expiration_date.

Platura commented 3 months ago

Schema auf dem las wurde mit news erweitert

DimitriB01 commented 2 months ago

Ich würde das Feld date bei der Tabelle news auch noch umbenennen auf "created_at". Wird etwas öfter genutzt und man kann es dann nicht mit dem expiration_date verwechseln

Platura commented 2 months ago

Habs auf created_at geändert

DimitriB01 commented 2 months ago

Ah mir ist noch das HASKI-OAS.yaml eingefallen. Da werden entrypoints dokumentiert. Der Vollständigkeit halber, die News auch eintragen. (Ich glaube contactform fehlt hier auch noch 🤔 )

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
1 New issue
0 Accepted issues

Measures
0 Security Hotspots
88.3% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

Platura commented 2 months ago

Hab der yaml die news hinzugefügt. Das vom contactform ist schon vorhanden