|
|
basePath: /
|
|
|
definitions:
|
|
|
MySwagger.DataResult:
|
|
|
properties:
|
|
|
message:
|
|
|
example: 查询成功
|
|
|
type: string
|
|
|
result:
|
|
|
example: 根据查询请求的format格式,返回查询结果数据
|
|
|
type: string
|
|
|
success:
|
|
|
example: true
|
|
|
type: boolean
|
|
|
type: object
|
|
|
MySwagger.Join:
|
|
|
properties:
|
|
|
join_id:
|
|
|
example: org_area
|
|
|
type: string
|
|
|
join_param:
|
|
|
example:
|
|
|
- "220100"
|
|
|
items:
|
|
|
type: string
|
|
|
type: array
|
|
|
type: object
|
|
|
MySwagger.QueryJoin:
|
|
|
properties:
|
|
|
access_token:
|
|
|
example: system_01##20200102030405##a6ce11eab94df48a6ce11eab
|
|
|
type: string
|
|
|
query:
|
|
|
$ref: '#/definitions/MySwagger.Simple'
|
|
|
query_count:
|
|
|
example:
|
|
|
- total
|
|
|
- total2
|
|
|
items:
|
|
|
type: string
|
|
|
type: array
|
|
|
query_format:
|
|
|
example: table/json/echarts/antd
|
|
|
type: string
|
|
|
query_group:
|
|
|
example:
|
|
|
- area_code
|
|
|
- school_type
|
|
|
items:
|
|
|
type: string
|
|
|
type: array
|
|
|
query_join:
|
|
|
$ref: '#/definitions/MySwagger.Join'
|
|
|
type: object
|
|
|
MySwagger.QuerySimple:
|
|
|
properties:
|
|
|
access_token:
|
|
|
example: system_01##20200102030405##a6ce11eab94df48a6ce11eab
|
|
|
type: string
|
|
|
query:
|
|
|
$ref: '#/definitions/MySwagger.Simple'
|
|
|
query_count:
|
|
|
example:
|
|
|
- total
|
|
|
- total2
|
|
|
items:
|
|
|
type: string
|
|
|
type: array
|
|
|
query_format:
|
|
|
example: table/json/echarts/antd
|
|
|
type: string
|
|
|
query_group:
|
|
|
example:
|
|
|
- area_code
|
|
|
- school_type
|
|
|
items:
|
|
|
type: string
|
|
|
type: array
|
|
|
type: object
|
|
|
MySwagger.QueryUnion:
|
|
|
properties:
|
|
|
access_token:
|
|
|
example: system_01##20200102030405##a6ce11eab94df48a6ce11eab
|
|
|
type: string
|
|
|
join_list:
|
|
|
items:
|
|
|
$ref: '#/definitions/MySwagger.Join'
|
|
|
type: array
|
|
|
query_count:
|
|
|
example:
|
|
|
- total
|
|
|
- total2
|
|
|
items:
|
|
|
type: string
|
|
|
type: array
|
|
|
query_format:
|
|
|
example: table/json/echarts/antd
|
|
|
type: string
|
|
|
query_group:
|
|
|
example:
|
|
|
- area_code
|
|
|
- school_type
|
|
|
items:
|
|
|
type: string
|
|
|
type: array
|
|
|
query_list:
|
|
|
items:
|
|
|
$ref: '#/definitions/MySwagger.Simple'
|
|
|
type: array
|
|
|
type: object
|
|
|
MySwagger.Simple:
|
|
|
properties:
|
|
|
query_id:
|
|
|
example: org_school_aggs
|
|
|
type: string
|
|
|
query_param:
|
|
|
example:
|
|
|
- "100"
|
|
|
- test
|
|
|
- 2020/07/08
|
|
|
items:
|
|
|
type: string
|
|
|
type: array
|
|
|
type: object
|
|
|
host: 127.0.0.1:9009
|
|
|
info:
|
|
|
contact:
|
|
|
email: 53766543@qq.com
|
|
|
name: API Support
|
|
|
url: http://www.swagger.io/support
|
|
|
description: DataEX Service using GO!!! create by zhangjun 2020-06-03
|
|
|
license:
|
|
|
name: Apache 2.0
|
|
|
url: http://www.apache.org/licenses/LICENSE-2.0.html
|
|
|
termsOfService: http://swagger.io/terms/
|
|
|
title: DataEX
|
|
|
version: "1.0"
|
|
|
paths:
|
|
|
/v1/report/QueryJoin:
|
|
|
post:
|
|
|
consumes:
|
|
|
- application/json
|
|
|
description: 【统计分析平台】ES-SQL数据关联查询接口,使用接入系统自定义的查询,与基础数据关联后【左关联】,返回查询结果数据。
|
|
|
parameters:
|
|
|
- description: 关联查询数据
|
|
|
in: body
|
|
|
name: input
|
|
|
required: true
|
|
|
schema:
|
|
|
$ref: '#/definitions/MySwagger.QueryJoin'
|
|
|
produces:
|
|
|
- application/json
|
|
|
responses:
|
|
|
"200":
|
|
|
description: OK
|
|
|
schema:
|
|
|
$ref: '#/definitions/MySwagger.DataResult'
|
|
|
"400":
|
|
|
description: Bad Request
|
|
|
schema:
|
|
|
$ref: '#/definitions/MySwagger.DataResult'
|
|
|
summary: ES-SQL数据关联查询
|
|
|
tags:
|
|
|
- V1.0
|
|
|
/v1/report/QuerySimple:
|
|
|
post:
|
|
|
consumes:
|
|
|
- application/json
|
|
|
description: 【统计分析平台】ES-SQL数据简单查询接口,使用接入系统自定义的查询,返回查询结果数据。
|
|
|
parameters:
|
|
|
- description: 简单查询数据
|
|
|
in: body
|
|
|
name: input
|
|
|
required: true
|
|
|
schema:
|
|
|
$ref: '#/definitions/MySwagger.QuerySimple'
|
|
|
produces:
|
|
|
- application/json
|
|
|
responses:
|
|
|
"200":
|
|
|
description: OK
|
|
|
schema:
|
|
|
$ref: '#/definitions/MySwagger.DataResult'
|
|
|
"400":
|
|
|
description: Bad Request
|
|
|
schema:
|
|
|
$ref: '#/definitions/MySwagger.DataResult'
|
|
|
summary: ES-SQL数据查询
|
|
|
tags:
|
|
|
- V1.0
|
|
|
/v1/report/QueryUnion:
|
|
|
post:
|
|
|
consumes:
|
|
|
- application/json
|
|
|
description: 【统计分析平台】ES-SQL数据合并查询接口,使用接入系统自定义的查询【支持多个查询】,与基础数据关联后【支持多次左关联】,返回查询结果数据。
|
|
|
parameters:
|
|
|
- description: 合并查询数据
|
|
|
in: body
|
|
|
name: input
|
|
|
required: true
|
|
|
schema:
|
|
|
$ref: '#/definitions/MySwagger.QueryUnion'
|
|
|
produces:
|
|
|
- application/json
|
|
|
responses:
|
|
|
"200":
|
|
|
description: OK
|
|
|
schema:
|
|
|
$ref: '#/definitions/MySwagger.DataResult'
|
|
|
"400":
|
|
|
description: Bad Request
|
|
|
schema:
|
|
|
$ref: '#/definitions/MySwagger.DataResult'
|
|
|
summary: ES-SQL数据合并查询
|
|
|
tags:
|
|
|
- V1.0
|
|
|
securityDefinitions:
|
|
|
BasicAuth:
|
|
|
type: basic
|
|
|
swagger: "2.0"
|