Revize 2d7e2ad6
Přidáno uživatelem Vojtěch Bartička před asi 3 roky(ů)
Backend/Backend/Controllers/UserController.cs | ||
---|---|---|
1 | 1 |
using Core.Services; |
2 | 2 |
using Core.Services.AnnotationService; |
3 | 3 |
using Microsoft.AspNetCore.Mvc; |
4 |
using Models.Annotations; |
|
4 | 5 |
using Models.Users; |
5 | 6 |
using RestAPI.Authentication; |
6 | 7 |
using RestAPI.Controllers.Common; |
... | ... | |
49 | 50 |
} |
50 | 51 |
|
51 | 52 |
[HttpGet("/user/annotations")] |
52 |
[ProducesResponseType((int)HttpStatusCode.OK)] |
|
53 |
[ProducesResponseType((int)HttpStatusCode.OK, Type = typeof(AnnotationListResponse))]
|
|
53 | 54 |
[ProducesResponseType((int)HttpStatusCode.Forbidden)] |
54 |
public ActionResult GetUserAnnotations([FromServices] ClientInfo clientInfo) |
|
55 |
public ActionResult<AnnotationListResponse> GetUserAnnotations([FromServices] ClientInfo clientInfo)
|
|
55 | 56 |
{ |
56 | 57 |
if (clientInfo.LoggedUser == null) |
57 | 58 |
{ |
Také k dispozici: Unified diff
Fix in AnnotationController