Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Example Value #184

Open
RickyChen1216 opened this issue Oct 16, 2018 · 0 comments
Open

Change Example Value #184

RickyChen1216 opened this issue Oct 16, 2018 · 0 comments

Comments

@RickyChen1216
Copy link

RickyChen1216 commented Oct 16, 2018

Hello,

First image is my current situation:
default

I want to change two Example Value in second image:
default

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:
default
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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant