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 thenum
most recent announcements (must capnum
to 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.
Activity