From 6ac5ba10f9c417f63a4713612a0abf5b20deb099 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 19 Dec 2020 20:08:49 +0800 Subject: feat: Bookmark timeline REST api. --- BackEnd/Timeline/Controllers/HighlightTimelineController.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'BackEnd/Timeline/Controllers/HighlightTimelineController.cs') 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 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 Delete([GeneralTimelineName] string timeline) { try @@ -81,12 +85,14 @@ namespace Timeline.Controllers } /// - /// Move a highlight position. + /// Move a highlight to new position. /// [HttpPost("highlightop/move")] [PermissionAuthorize(UserPermission.HighlightTimelineManagement)] [ProducesResponseType(200)] [ProducesResponseType(400)] + [ProducesResponseType(401)] + [ProducesResponseType(403)] public async Task Move([FromBody] HttpHighlightTimelineMoveRequest body) { try -- cgit v1.2.3