This repository was archived by the owner on Aug 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Create Announcements Endpoints #47
Copy link
Copy link
Open
Description
We should the following endpoints for announcements:
-
/announcements/metadata/{id}: Gets the metadata for the announcementid(date, title, blurb) -
/announcements/get/{id}: Gets the markdown content for the announcementid -
/announcements/last: Returns the ID of the most recent announcement -
/announcements/last/{num}: Returns the sorted IDs of thenummost recent announcements (must capnumto something)
The API should make use an ocflib backend tool to get this information, rather than directly obtaining the information from the repository itself. These functions should essentially just be interfaces for the respective ocflib functions that get this information (maybe /last can use the same ocflib method as /last/{num}, but withnum = 1). It should be assumed that ocflib implements an appropriate caching strategy.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request