mirror of
https://github.com/AnimeThemes/animethemes-api-docs.git
synced 2026-07-11 01:34:06 +02:00
1.6 KiB
1.6 KiB
title
| title |
|---|
| Announcement |
Announcement
An announcement API resource represents a site-wide message to be broadcasted on the homepage.
For example, if video streaming is disabled, the site staff may issue a "Video streaming has been disabled!" announcement.
Fields
| Name | Type | Nullable | Default | Description |
|---|---|---|---|---|
| id | Integer | No | Yes | The primary key of the resource |
| content | String | No | Yes | The announcement text |
| created_at | Date | No | No | The date that the resource was created |
| updated_at | Date | No | No | The date that the resource was last modified |
Allowed Include Paths
None
Endpoints
The announcement destroy endpoint deletes an announcement and returns a confirmation message.
The announcement index endpoint displays a listing of announcement resources.
The announcement show endpoint returns an announcement resource.
The announcement store endpoint creates a new announcement and returns the new announcement resource.
The announcement update endpoint updates an announcement and returns the updated announcement resource.