Skip to content

Announcements

Saray Cabrera Padrón edited this page May 11, 2020 · 1 revision

We need a way to display Terms of Services (ToS). This feature,that we call Announcement, has the following characteristics:

  • The announcement is visible all along the website until the user accept it.
  • The user has to accept the ToS to hide the announcement.
  • We only display one announcement at a time. The last one. The older ones are considered obsolete.
  • Only admin users can create announcements via API.
  • The text of the announcement can include markdown format.
  • Everybody can see the announcement, even non-logged users. But, of course, only logged users can accept it.
  • Even if the user accept the ToS and the announcement disappears, we always have to show the text somewhere. We have added a link to the footer.
osc api -X POST '/announcements' -d "<announcement><title>Sequi voluptates 1</title><content>This is the content with **bold** and _italic_ texts.</content></announcement>"
curl -u Admin:xxx -X POST -d "<announcement>\n <title>Sequi voluptates 2</title><content>This is the content with **bold** and _italic_ texts.</content></announcement>" http://localhost:3000/announcements.xml
Clone this wiki locally