Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I want to do document and test my web api project. For this i have searched a lot in online and used swashbuckle-swagger for creating document bit this this not sufficient for me.

1-: Could you let me know which is the best tool (with more features and easy to use) for creating document for Restful Api.
2-: to test my one controller(api) i need to pass credential. How i will pass credential.
3-: My basic requirement to do document is as follows, For POST request i want test boxes for each filed to test service, like GET request(now i am getting input textbox using swashbuckle).

Example:

below is POST method request class

C#
public class CodeRequest {
[DataMember(Order = 0)]
public List item_codes { get; set; }
[DataMember(Order = 1)] public string context_item_cd { get; set; }
[DataMember(Order = 2)] public string code_header_id { get; set; }
[DataMember(Order = 3)] public string locale { get; set; }
[DataMember(Order = 4)]
public CodeRequestAction? action { get; set; } 
}


below is POST method in controller.
C#
public HttpResponseMessage Post([FromBody] CodeRequest request)
 { if (null == request)
 return Request.CreateResponse(HttpStatusCode.NoContent, null);
 return Request.CreateResponse(HttpStatusCode.OK, new FndCodeResponse(request));
 }

I want to create text box for each member for POST request.

for public List item_codes { get; set; } item_codes | textbox |data type| required |its description

for public string context_item_cd { get; set; } context_item_cd | textbox |data type | required | its description

If it is possible then please let me know.

Thanks,
Uttam
Posted
Updated 4-Nov-14 1:00am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900