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
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.
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