Код: Выделить всё
{
"errors": {
"type": [
"The type field is required."
]
},
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title": "One or more validation errors occurred.",
"status": 400,
"traceId": "|a516ca97-4f35ffd51f30acad."
}
Код: Выделить всё
[HttpPost("{imageId}/export", Name = nameof(ExportImage))]
[ProducesResponseType(typeof(Business.Realhub.Models.User), StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status400BadRequest)]
[ProducesResponseType(StatusCodes.Status404NotFound)]
[ProducesResponseType(StatusCodes.Status500InternalServerError)]
public async Task ExportImage([FromRoute] int imageId, [FromQuery] string type, CancellationToken cancellationToken)
Код: Выделить всё
POST /v1/images/13898656/export

Подробнее здесь: https://stackoverflow.com/questions/681 ... s-required