📜  如何在 swagger 注释中定义请求对象 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:41.329000             🧑  作者: Mango

代码示例1
@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}"
    )
  )
)