Answers for "how to define request object in swagger annotations"

0

how to define request object in swagger annotations

@ApiParam(
  value = "A JSON value representing a transaction. An example of the expected schema can be found down here. The fields marked with an * means that they are required.",
  examples = @Example(value = 
    @ExampleProperty(
      mediaType = MediaType.APPLICATION_JSON,
      value = "{foo: whatever, bar: whatever2}"
    )
  )
)
Posted by: Guest on March-03-2021

Browse Popular Code Answers by Language