>
> We are using it for our APIs and [FromBody] parameters are magically
> appearing.
>

Yes, just like many articles suggest. Great example.

You can see a sample of my problem here:
https://www.orthogonal.net.au/pegwebapi/swagger/ui/index#!/Session/Session_MockMethod

I've pasted below a picture of the controller source code method with a
body parameter that doesn't appear in the output. What's different about
your method? Are there any special annotations on the class in the body?

Note that I had to write an IOperationFilter class to get the headers to
appear in the output Parameters list, which was an obscure and tricky thing
to uncover.

Also note that I'm not using YAML to define the API, I'm documenting an
existing API which they call the bottom-up approach.

*GK*

[image: Inline images 2]

Reply via email to