I have the following resource in ASP.NET WebAPI project:
[HttpGet]
[Route("api/v1/things/{id:int}")]
[ResponseType(typeof(Model.Thing))]
public IHttpActionResult Get(int id)
{
var client = new ThingApiClient(THING_API, Log.Logger, Log.Logger);
var apiResult = client.Get(id);
if (apiResult == null)
{
return NotFound();
}
var result = Mapper.Instance.Map<Api.Model.Thing, Model.Thing>(apiResult);
return Ok(result);
}
And something similar for the POST and PUT.
It occurs that some parts of the result are just super heavy due to some big base64 image string... which quickly can reach the request length size...
I am wondering what kind of workaround can be implemented to overcome the limitation for the requests (on POST and PUT), I was reading about streaming, websockets, just increasing the size of the request, etc.
The API is consumed by an Angular application for the front-end