You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to change two Example Value in second image:
Parameter type is stream (input in body).
The POST method is: Stream AddFingerPrintTask(Stream taskStream);
Red frame:
I add [SwaggerWcfReturnType(typeof(FingerPrint))] In front of method "AddFingerPrintTask". FingerPrint is class consisted of Org_Code, Call_No and INP_Date.
I want to remove "AddFingerPrintTaskResult" and finally want it to be: {
"Org_Code": "string",
"Call_No": "string",
"INP_Date": "string"
}
I also try this: [SwaggerWcfResponse(HttpStatusCode.Created, "OK", ExampleContent = "{"Org_Code":"string","Call_No":"string","INP_Date":"string"}")]
It will be:
It is closer but not enough.
Blue frame:
I try to add [SwaggerWcfParameter(ParameterType = typeof(FingerPrint))] but it doesn't work.
I also want it to be: {
"Org_Code": "string",
"Call_No": "string",
"INP_Date": "string"
}
Please help me, thanks!
The text was updated successfully, but these errors were encountered:
Hello,
First image is my current situation:
I want to change two Example Value in second image:
Parameter type is stream (input in body).
The POST method is:
Stream AddFingerPrintTask(Stream taskStream);
Red frame:
I add [SwaggerWcfReturnType(typeof(FingerPrint))] In front of method "AddFingerPrintTask". FingerPrint is class consisted of Org_Code, Call_No and INP_Date.
I want to remove "AddFingerPrintTaskResult" and finally want it to be:
{
"Org_Code": "string",
"Call_No": "string",
"INP_Date": "string"
}
I also try this:
[SwaggerWcfResponse(HttpStatusCode.Created, "OK", ExampleContent = "{"Org_Code":"string","Call_No":"string","INP_Date":"string"}")]
It will be:
It is closer but not enough.
Blue frame:
I try to add [SwaggerWcfParameter(ParameterType = typeof(FingerPrint))] but it doesn't work.
I also want it to be:
{
"Org_Code": "string",
"Call_No": "string",
"INP_Date": "string"
}
Please help me, thanks!
The text was updated successfully, but these errors were encountered: