Last post Jun 22, 2015 11:42 AM by ric1ca
Jun 21, 2015 07:22 AM|ric1ca|LINK
I would like to ask the question of how to pass a date parameter in Fiddler's Composer Tab?
My endpoint as shown directly below:
public string AddLease(DateTime startDate, DateTime endDate, int slipID, int customerID, int leaseTypeID)
return LeaseManager.AddLease(startDate, endDate, slipID, customerID, leaseTypeID);
And the way I am trying to pass the dates (startDate and endDate) is shown below:
Currently I am getting a HTTP/1.1 404 Not Found error from Fiddler but I strongly suspect
that it is just in the way that I am composing my dates in the Composer as I am not
sure how to pass it there ... I know how to pass other primitive types like string and integer
but never tried to pass dates before ..
I tried to google it up without any luck and I am hoping someone could point me in the right
direction ... thanks so much for all the help you could give.
Jun 22, 2015 04:03 AM|Krunal Parekh|LINK
There could be number of reasons.
1. You have marked the method as httppost then why are you passing the values in url they should be passed in Request Body.
2. Since it is showing HTTP/1.1 404 Not Found then that is the case you can come to date issue later check your attribute routing
Attribute Routing in ASP.NET Web API
Hope this helps.
Jun 22, 2015 11:42 AM|ric1ca|LINK
Hello Krunal and thanks for your help I really appreciate it ... and also for that well written link ... many thanks .. have a great day