-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathswagger.yml
executable file
·132 lines (132 loc) · 2.88 KB
/
swagger.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
consumes:
- application/json
produces:
- application/json
schemes:
- http
- https
swagger: '2.0'
info:
description: |-
This application represents viable extractor methods.
Declared methods are compulsory for appropriate extractor functioning.
title: Gravity Extractor RPC API.
termsOfService: >-
there are no TOS at this moment, use at your own risk we take no
responsibility
contact:
name: venlab.dev
url: 'https://venlab.dev'
email: shamil@venlab.dev
license:
name: MIT
url: 'http://opensource.org/licenses/MIT'
version: '1.0'
host: extractor.gravityhub.org
basePath: /
paths:
/extracted:
get:
security:
- api_key: []
description: No additional info
consumes:
- application/json
produces:
- application/json
schemes:
- http
- https
tags:
- Extractor
summary: Extracts mapped data
operationId: getExtractedData
responses:
'200':
description: BinancePriceIndexResponse
schema:
$ref: '#/definitions/BinancePriceIndexResponse'
/info:
get:
security:
- api_key: []
description: No additional info
consumes:
- application/json
produces:
- application/json
schemes:
- http
- https
tags:
- Extractor
summary: Returns extractor common info
operationId: getExtractorInfo
responses:
'200':
description: ExtractorInfo
schema:
$ref: '#/definitions/ExtractorInfo'
/raw:
get:
security:
- api_key: []
description: No additional info
consumes:
- application/json
produces:
- application/json
schemes:
- http
- https
tags:
- Extractor
summary: Resolves raw data
operationId: getRawData
responses:
'200':
description: '[]bytes'
definitions:
BinancePriceExtractor:
type: object
properties:
Tag:
type: string
x-go-name: SymbolPair
x-go-package: _/usr/local/var/www/gravity-node-data-extractor/model
BinancePriceIndexResponse:
type: object
properties:
calcTime:
type: integer
format: int64
x-go-name: CalcTime
price:
type: string
x-go-name: Price
symbol:
type: string
x-go-name: Symbol
x-go-package: _/usr/local/var/www/gravity-node-data-extractor/model
ExtractorInfo:
type: object
properties:
DataFeedTag:
type: string
Description:
type: string
x-go-package: _/usr/local/var/www/gravity-node-data-extractor/model
securityDefinitions:
api_key:
type: apiKey
name: KEY
in: header
security:
- api_key: []
x-meta-array:
- value1
- value2
x-meta-array-obj:
- name: obj
value: field
x-meta-value: value