Forum Discussion
ralphdoe
6 years agoNew Contributor
Hi Frank.
I think you need to use the example property.
parameters: - in: query name: status schema: type: string enum: [approved, pending, closed, new] example: approved
You can find more information in this link:
https://swagger.io/docs/specification/adding-examples/
Have a nice day.
- frankmehlhop6 years agoNew Contributor
Thanks for your Reply!
But I'm not looking for examples, I'm looking for default values.
This I find here: https://swagger.io/docs/specification/describing-parameters/
And also I have no idea how to implement this (also this linked example with exaples) in the C# Rest Api controller.Frank
This code don't work:
[HttpGet()] [Get /MetaDataRequest?ResourceID='123'] // That's wrong. But I do it right? public IActionResult Get(MetaDataRequest json) { ...
Related Content
- 4 years ago
- 5 years ago
Recent Discussions
- 4 days ago
- 4 days ago
- 21 days ago