Chaitin Tech installer/statistic API

终端安装包/统计分析

OpenAPI Specification

chaitin-installer-statistic-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: APISec Management account installer/statistic API
  version: '26.05'
  description: Generated from APISec skyview APIView classes.
tags:
- name: installer/statistic
  description: 终端安装包/统计分析
paths:
  /installer/statistic/:
    post:
      summary: 安装包统计信息
      deprecated: false
      description: ''
      tags:
      - installer/statistic
      parameters:
      - name: X-CS-Header-App
        in: header
        description: 应用id
        required: true
        example: '{{app}}'
        schema:
          type: string
      - name: X-CS-Header-Company
        in: header
        description: 公司id
        required: true
        example: '{{company_id}}'
        schema:
          type: string
      - name: X-CS-Header-Crypt
        in: header
        description: 加密算法,请参考:https://servaltech.feishu.cn/docs/doccnQCZ2cw32uazgNSO0DFwceb
        required: true
        example: ''
        schema:
          type: string
      - name: If-None-Match
        in: header
        description: 对于支持「ETAG」的接口,将上一次请求的响应header的Etag,填入到下一次请求。若匹配,则返回304(无变更),否则会返回新版本的数据 + 新Etag
        required: true
        example: string
        schema:
          type: string
      - name: X-CS-Header-Debug
        in: header
        description: ''
        required: true
        example: '{{debug}}'
        schema:
          type: string
      - name: Accept-Language
        in: header
        description: ''
        required: true
        example: zh
        schema:
          type: string
      - name: X-Cs-Header-Timezone
        in: header
        description: ''
        required: true
        example: Asia/Shanghai
        schema:
          type: string
      - name: Content-Type
        in: header
        description: ''
        required: true
        example: application/json
        schema:
          type: string
      - name: Accept
        in: header
        description: ''
        required: true
        example: application/json
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties: {}
            example: {}
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      status_statistic:
                        type: object
                        properties:
                          total:
                            type: integer
                          waiting:
                            type: integer
                          published:
                            type: integer
                        required:
                        - total
                        - waiting
                        - published
                      last_family_version:
                        type: object
                        properties:
                          UOS:
                            type: object
                            properties:
                              arm64:
                                type: object
                                properties:
                                  version:
                                    type: string
                                  current:
                                    type: integer
                                  total:
                                    type: integer
                                required:
                                - version
                                - current
                                - total
                              x86_64:
                                type: object
                                properties:
                                  version:
                                    type: string
                                  current:
                                    type: integer
                                  total:
                                    type: integer
                                required:
                                - version
                                - current
                                - total
                            required:
                            - arm64
                            - x86_64
                          Linux:
                            type: object
                            properties:
                              arm64:
                                type: object
                                properties:
                                  version:
                                    type: string
                                  current:
                                    type: integer
                                  total:
                                    type: integer
                                required:
                                - version
                                - current
                                - total
                              x86_64:
                                type: object
                                properties:
                                  version:
                                    type: string
                                  current:
                                    type: integer
                                  total:
                                    type: integer
                                required:
                                - version
                                - current
                                - total
                            required:
                            - arm64
                            - x86_64
                          Kylin:
                            type: object
                            properties:
                              arm64:
                                type: object
                                properties:
                                  version:
                                    type: string
                                  current:
                                    type: integer
                                  total:
                                    type: integer
                                required:
                                - version
                                - current
                                - total
                              x86_64:
                                type: object
                                properties:
                                  version:
                                    type: string
                                  current:
                                    type: integer
                                  total:
                                    type: integer
                                required:
                                - version
                                - current
                                - total
                            required:
                            - arm64
                            - x86_64
                          Windows:
                            type: object
                            properties:
                              x86_64:
                                type: object
                                properties:
                                  version:
                                    type: string
                                  current:
                                    type: integer
                                  total:
                                    type: integer
                                required:
                                - version
                                - current
                                - total
                            required:
                            - x86_64
                          macOS:
                            type: object
                            properties:
                              Universal:
                                type: object
                                properties:
                                  version:
                                    type: string
                                  current:
                                    type: integer
                                  total:
                                    type: integer
                                required:
                                - version
                                - current
                                - total
                            required:
                            - Universal
                        required:
                        - UOS
                        - Linux
                        - Kylin
                        - Windows
                        - macOS
                    required:
                    - status_statistic
                    - last_family_version
                required:
                - code
                - msg
                - data
              example:
                code: 0
                msg: success
                data:
                  status_statistic:
                    total: 354
                    waiting: 346
                    published: 8
                  last_family_version:
                    UOS:
                      arm64:
                        version: 3.4.12
                        current: 3
                        total: 3
                      x86_64:
                        version: 3.4.11
                        current: 0
                        total: 1
                    Linux:
                      arm64:
                        version: 3.4.12
                        current: 0
                        total: 0
                      x86_64:
                        version: 3.4.11
                        current: 0
                        total: 7
                    Kylin:
                      arm64:
                        version: 3.4.12
                        current: 1
                        total: 2
                      x86_64:
                        version: 3.4.11
                        current: 1
                        total: 1
                    Windows:
                      x86_64:
                        version: 3.4.30
                        current: 2
                        total: 13
                    macOS:
                      Universal:
                        version: 3.4.27
                        current: 6
                        total: 11
      security: []