1

我对端点有以下招摇规范:

records-by-time:
    post:
      operationId: idOfRecordsByTimeEndpoint
      parameters:
      - in: body
        name: Body
        schema:
          $ref: '#/definitions/RecordsByTimeRequest'
      responses:
        "200":
          $ref: '#/responses/RecordsByTimeResponse'
      summary: 'Return records where fieldName value lies between #/definitions/RecordsByTimeRequest/left_bound and right_bound.'
      tags:
      - get-records

我有以下定义

definitions:
  RecordsByTimeRequest:
    properties:
      driver_name:
        type: string
        x-go-name: DriverName
      field_name:
        type: string
        x-go-name: FieldName
      left_bound:
        format: date-time
        type: string
        x-go-name: LeftBound
      right_bound:
        format: date-time
        type: string
        x-go-name: RightBound
      table_name:
        type: string
        x-go-name: TableName

我可以在请求定义中的摘要引用left_bound中创建left_bound,也许是请求定义字段中的字段的链接?如果可以的话,如何将它应用于大摇大摆的评论。

4

0 回答 0