I am using swagger ui to test a POST method. I am passing the parameter in URL but it doesn't work.
swagger-ui:
I enter this
Date: 2017-03-03T12:12:12
this is how it goes in
url: https://servername/Results/2017-03-03T12%3A12%3A12
This doesn't work. it return 404 error
but when i pass just the date it works.
Date: 2017-03-03
my method:
[Route("{Results/{date}"), HttpPost]
public Common.CallDetails StartTCISCall(DateTime date)
I have tried this also but it doesn't even catch it as a string.
[Route("{Results/{*date}"), HttpPost]
public Common.CallDetails StartTCISCall(string date)
as soon as i take the colons out it starts to work. What can i do?
Also, for my friend it works locally on VS but when he publishes to IIS it doesn't work and we tried 3 different servers. Why is this?
Many thanks, Please help.