如何在springfox-swagger2中执行请求主体对象有效负载

时间:2018-11-07 14:03:06

标签: spring-boot swagger springfox

如何使用springfox-swagger2重现以下OpenApi?

  parameters:
  - in: body
    name: user
    description: The user to create.
    schema:
      type: object
      required:
        - userName
      properties:
        userName:
          type: string
        firstName:
          type: string
        lastName:
          type: string

此处描述了这一点: https://swagger.io/docs/specification/2-0/describing-request-body/

0 个答案:

没有答案