aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Controllers/HighlightTimelineController.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-12-19 20:12:00 +0800
committerGitHub <noreply@github.com>2020-12-19 20:12:00 +0800
commit4b3ae3edd9e8aceac5ff26ef137d2a8d686fe305 (patch)
tree8dba18b84d996f1396423788525390fdde301210 /BackEnd/Timeline/Controllers/HighlightTimelineController.cs
parentebc2892d1546b8b59bd1c9adabe8a96a2e2a0754 (diff)
parent682b5a076c967f9f38dd32c0cffd4010548bd400 (diff)
downloadtimeline-4b3ae3edd9e8aceac5ff26ef137d2a8d686fe305.tar.gz
timeline-4b3ae3edd9e8aceac5ff26ef137d2a8d686fe305.tar.bz2
timeline-4b3ae3edd9e8aceac5ff26ef137d2a8d686fe305.zip
Merge pull request #194 from crupest/bookmark-timeline
Bookmark timeline.
Diffstat (limited to 'BackEnd/Timeline/Controllers/HighlightTimelineController.cs')
-rw-r--r--BackEnd/Timeline/Controllers/HighlightTimelineController.cs8
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