I'm using web API help documentation to connect API devs and UI client devs. One of the item I would like to define in the help is the Date format. And want it to be customized within the sample of request/response information at the API action details page:
I have request entity:
public class Request
{
public string Id {get;set;}
public string Type {get;set;}
public DateTime Date {get;set;}
}
This is a default representation at the help page:
{
"Id": "sample string 1",
"Type": "sample string 2",
"Date": "2014-08-12T19:33:09.6221727+00:00"
}
I want it to be like the following:
{
"Id": "sample string 1",
"Type": "sample string 2",
"Date": "08/13/2014"
}
How can I achieve this goal?