swagger: "2.0"
info:
  version: "0.0.1"
  title: 用户数据接口
# during dev, should point to your local machine
host: employee.cathay-ins.com.cn
# basePath prefixes all resource paths
basePath: /
#
schemes:
  # tip: remove http to make production-grade
  - http
  - https
# format of bodies a client can send (Content-Type)
consumes:
  - application/json
# format of the responses to the client (Accepts)
produces:
  - application/json
paths:
  /api/users/{ID}:
    get:
      description: 获取用户基本信息
      parameters:
      - name: ID
        description: 用户ID
        in: path
        type: string
        required: true
      responses:
        200:
          description: 返回数据成功
          schema:
            # a pointer to a definition
            $ref: "schema/user.yaml#/definitions/User"
        # responses may fall through to errors
        400:
          description: Error
          schema:
            $ref: "schema/user.yaml#/definitions/Error400"
