diff options
author | crupest <crupest@outlook.com> | 2020-12-19 20:08:49 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-12-19 20:08:49 +0800 |
commit | cf8a869de33cfa5db1967698059abccaaeaba4c9 (patch) | |
tree | 5e4a504e02b9d8592be7ec5b1aba28d2dd876ddf /BackEnd/Timeline/Controllers/HighlightTimelineController.cs | |
parent | ab3aedad37fe4634efb0d6939d7a40642bfff032 (diff) | |
download | timeline-cf8a869de33cfa5db1967698059abccaaeaba4c9.tar.gz timeline-cf8a869de33cfa5db1967698059abccaaeaba4c9.tar.bz2 timeline-cf8a869de33cfa5db1967698059abccaaeaba4c9.zip |
feat: Bookmark timeline REST api.
Diffstat (limited to 'BackEnd/Timeline/Controllers/HighlightTimelineController.cs')
-rw-r--r-- | BackEnd/Timeline/Controllers/HighlightTimelineController.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/BackEnd/Timeline/Controllers/HighlightTimelineController.cs b/BackEnd/Timeline/Controllers/HighlightTimelineController.cs index 0b6e1665..519d6161 100644 --- a/BackEnd/Timeline/Controllers/HighlightTimelineController.cs +++ b/BackEnd/Timeline/Controllers/HighlightTimelineController.cs @@ -46,6 +46,8 @@ namespace Timeline.Controllers [PermissionAuthorize(UserPermission.HighlightTimelineManagement)]
[ProducesResponseType(200)]
[ProducesResponseType(400)]
+ [ProducesResponseType(401)]
+ [ProducesResponseType(403)]
public async Task<ActionResult> Put([GeneralTimelineName] string timeline)
{
try
@@ -67,6 +69,8 @@ namespace Timeline.Controllers [PermissionAuthorize(UserPermission.HighlightTimelineManagement)]
[ProducesResponseType(200)]
[ProducesResponseType(400)]
+ [ProducesResponseType(401)]
+ [ProducesResponseType(403)]
public async Task<ActionResult> Delete([GeneralTimelineName] string timeline)
{
try
@@ -81,12 +85,14 @@ namespace Timeline.Controllers }
/// <summary>
- /// Move a highlight position.
+ /// Move a highlight to new position.
/// </summary>
[HttpPost("highlightop/move")]
[PermissionAuthorize(UserPermission.HighlightTimelineManagement)]
[ProducesResponseType(200)]
[ProducesResponseType(400)]
+ [ProducesResponseType(401)]
+ [ProducesResponseType(403)]
public async Task<ActionResult> Move([FromBody] HttpHighlightTimelineMoveRequest body)
{
try
|