如何从OpenAPI(Swagger)创建POJO类?

时间:2018-03-02 05:15:00

标签: swagger pojo swagger-2.0

如何为以下OpenAPI(Swagger)定义创建POJO类?

paths:
  /execute:
    post:
      summary: 'Execute the web service and get a response synchronously'
      operationId: execute
      parameters:
        - in: body
          name: 'body'
          description: 'Execution request'
          schema:
            $ref: '#/definitions/ExecutionRequest'
        - in: query
          name: 'api-version'
          description: 'the version of the backend API'
          required: true
          type: number
          default: 2.0
        - in: query
          name: 'format'
          description: 'the format of the backend API'
          required: true
          type: string
          default: "swagger"
      responses:
        '200':
          description: Execution results
          schema:
            $ref: '#/definitions/ExecutionResults'
      security:
        - api_key: []

0 个答案:

没有答案