public async Task <string> GetRSi([FromRoute] string user, [FromRoute] string sigma, [FromBody] IEnumerable <string> deltas) { var sign = await GetSign(user).ComputeSign(sigma.DecodeBase64Url(), deltas.Select(itm => ResponseDelta.Parse(itm))); return(sign.ToString()); }
public async Task <string> GetRSi([FromRoute] string user, [FromRoute] string sigma, [FromQuery] IEnumerable <string> deltas) { if (deltas == null || !deltas.Any()) { return(null); } var sign = await GetSign(user).ComputeSign(sigma.DecodeBase64Url(), deltas.Select(itm => ResponseDelta.Parse(itm.DecodeBase64Url()))); return(sign.ToString()); }