internal static CamundaRequest ToEntity(this CamundaRequestModel model, CamundaEndpoint endpoint) => new CamundaRequest { Endpoint = endpoint, Path = JsonConvert.DeserializeObject <Dictionary <string, string> >(model.Path), Query = JsonConvert.DeserializeObject <Dictionary <string, string> >(model.Query), Body = model.Body, Resources = model.Files?.Select((file, index) => new LocalFile { Name = $"file{index}", FileName = file.FileName, Stream = file.OpenReadStream() }).ToList() ?? new List <LocalFile>() };
public async Task <ActionResult <CamundaResponseModel> > SendRequest([FromForm] CamundaRequestModel model) => await Execute(async operation =>