This works fine, and I am able to omit Speed parameter:
[Route("/speech/sentence/", "POST")]
public class Sentence : IReturn<HttpResult>
{
public string Input { get; set; }
public string Speed { get; set; }
}
This does not work, gets an 'HTTP/1.1 400 Bad Request' not able to omit Speed parameter:
[Route("/speech/sentence/", "POST")]
public class Sentence : IReturn<HttpResult>
{
public string Input { get; set; }
public int Speed { get; set; }
}
This also does not work, gets an 'HTTP/1.1 400 Bad Request' not able to omit Speed parameter:
[Route("/speech/sentence/", "POST")]
public class Sentence : IReturn<HttpResult>
{
public string Input { get; set; }
public int? Speed { get; set; }
}
Anyone? Thanks