YAML文件中的paths节点是用来做什么的?definitions节点是用来做什么的?

paths节点是用来设计接口:

paths:
  #接口地址
  /store/payment/create
    post:
      tags:
      - float-cash-controller
      summary: 备用金存钱取钱
      description: 备用金存钱取钱
      operationId: savefloatcash
      consumes: 
      - application/json
      produces:
      - application/json
      parameters:
      - in: body
        name: requestParam
        description: requestParam
        required: true
        schema:
          $ref: '#/definitions/FloatCashVo'
      responses:
        '200':
          description: OK
          schema:
            $ref: '#/definitions/ResponseRsultVo'

 

 

definitions节点是用来设计对象vo的:

你可能感兴趣的:(java)