Fix response code & docs
This commit is contained in:
parent
0c98bc42a8
commit
81c0451b5e
|
@ -92,7 +92,7 @@ namespace Jellyfin.Api.Controllers
|
||||||
/// <response code="404">Task not found.</response>
|
/// <response code="404">Task not found.</response>
|
||||||
/// <returns>An <see cref="NoContentResult"/> on success, or a <see cref="NotFoundResult"/> if the file could not be found.</returns>
|
/// <returns>An <see cref="NoContentResult"/> on success, or a <see cref="NotFoundResult"/> if the file could not be found.</returns>
|
||||||
[HttpPost("Running/{taskId}")]
|
[HttpPost("Running/{taskId}")]
|
||||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
[ProducesResponseType(StatusCodes.Status204NoContent)]
|
||||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||||
public ActionResult StartTask([FromRoute] string taskId)
|
public ActionResult StartTask([FromRoute] string taskId)
|
||||||
{
|
{
|
||||||
|
@ -116,7 +116,7 @@ namespace Jellyfin.Api.Controllers
|
||||||
/// <response code="404">Task not found.</response>
|
/// <response code="404">Task not found.</response>
|
||||||
/// <returns>An <see cref="OkResult"/> on success, or a <see cref="NotFoundResult"/> if the file could not be found.</returns>
|
/// <returns>An <see cref="OkResult"/> on success, or a <see cref="NotFoundResult"/> if the file could not be found.</returns>
|
||||||
[HttpDelete("Running/{taskId}")]
|
[HttpDelete("Running/{taskId}")]
|
||||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
[ProducesResponseType(StatusCodes.Status204NoContent)]
|
||||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||||
public ActionResult StopTask([FromRoute] string taskId)
|
public ActionResult StopTask([FromRoute] string taskId)
|
||||||
{
|
{
|
||||||
|
@ -141,7 +141,7 @@ namespace Jellyfin.Api.Controllers
|
||||||
/// <response code="404">Task not found.</response>
|
/// <response code="404">Task not found.</response>
|
||||||
/// <returns>An <see cref="OkResult"/> on success, or a <see cref="NotFoundResult"/> if the file could not be found.</returns>
|
/// <returns>An <see cref="OkResult"/> on success, or a <see cref="NotFoundResult"/> if the file could not be found.</returns>
|
||||||
[HttpPost("{taskId}/Triggers")]
|
[HttpPost("{taskId}/Triggers")]
|
||||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
[ProducesResponseType(StatusCodes.Status204NoContent)]
|
||||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||||
public ActionResult UpdateTask(
|
public ActionResult UpdateTask(
|
||||||
[FromRoute] string taskId,
|
[FromRoute] string taskId,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user