This page describes the REST endpoints that are added by the @PLUGIN@ plugin.
Please also take note of the general information on the REST API.
GET /config/server/@PLUGIN@~message/
Gets the message of the day.
GET /config/server/@PLUGIN@~message/ HTTP/1.0
As response a MessageOfTheDayInfo entity is returned that contains the message and associated metadata.
HTTP/1.1 200 OK
Content-Disposition: attachment
Content-Type: application/json;charset=UTF-8
)]}'
{
"id": "hello",
"starts_at": "Feb 4, 2020 5:53:00 PM",
"expires_at": "Dec 30, 2020 6:00:00 PM",
"redisplay": "Feb 5, 2020 1:00:00 AM",
"html": "hello you!"
}
The MessageOfTheDayInfo entity contains information about the message of the day.
id: ID of the message.starts_at: Date, when the message will be first displayedexpires_at: Date, after which the message will not be displayed anymoreredisplay: Date, after which will the message be displayed again after dismissalhtml: String, containing the HTML-formatted message