#478 ContributionStatsController
This commit is contained in:
parent
4115089504
commit
e60a5978c9
@ -61,6 +61,24 @@ namespace RMuseum.Controllers
|
||||
return Ok(pagedResult.Result.Tracks);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// summed up stats of approved poem corrections
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[HttpGet("poem/corrections")]
|
||||
[AllowAnonymous]
|
||||
[ProducesResponseType((int)HttpStatusCode.OK, Type = typeof(SummedUpViewModel))]
|
||||
[ProducesResponseType((int)HttpStatusCode.BadRequest, Type = typeof(string))]
|
||||
public async Task<IActionResult> GetApprrovedEditsSummedUpStatsAsync()
|
||||
{
|
||||
var res = await _service.GetApprrovedEditsSummedUpStatsAsync();
|
||||
if (!string.IsNullOrEmpty(res.ExceptionString))
|
||||
return BadRequest(res.ExceptionString);
|
||||
|
||||
|
||||
return Ok(res.Result);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// service
|
||||
/// </summary>
|
||||
|
||||
@ -779,6 +779,12 @@
|
||||
<param name="userId"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:RMuseum.Controllers.ContributionStatsController.GetApprrovedEditsSummedUpStatsAsync">
|
||||
<summary>
|
||||
summed up stats of approved poem corrections
|
||||
</summary>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="F:RMuseum.Controllers.ContributionStatsController._service">
|
||||
<summary>
|
||||
service
|
||||
|
||||
Loading…
Reference in New Issue
Block a user