-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger.yaml
executable file
·212 lines (212 loc) · 5.66 KB
/
swagger.yaml
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
---
swagger: "2.0"
info:
description: The purpose of this microservice is to be the interface to the database for persisting google play store related data.
version: "1.0.0"
title: Store app reviews from the Google Play Store
contact:
email: [email protected]
host: 217.172.12.199:9681
schemes:
- http
paths:
/hitec/repository/app/observable/google-play:
get:
description: Get a the apps that are currently under observation
operationId: getObsevableGooglePlay
produces:
- application/json
responses:
200:
description: a list of app reviews
schema:
$ref: "#/definitions/ObservableGooglePlay"
400:
description: bad input parameter or no app reviews could be retrieved.
/hitec/repository/app/google-play/package-name/{package_name}/class/{class}:
get:
description: Get a list of app reviews from a given app belonging to the class bug_report or feature_request.
operationId: getAppReviewsOfClass
produces:
- application/json
parameters:
- name: package_name
in: path
description: the unique package name of the app.
required: true
type: string
- name: class
in: path
description: the class app reviews belong to. bug_report or feature_request.
required: true
type: integer
responses:
200:
description: a list of app reviews
schema:
$ref: "#/definitions/ProcessedAppReview"
400:
description: bad input parameter or no app reviews could be retrieved.
/hitec/repository/app/store/app-page/google-play/:
post:
description: Store a google play app page.
operationId: postAppPageGooglePlay
consumes:
- application/json
parameters:
- in: body
name: AppPageGooglePlay
required: true
schema:
$ref: "#/definitions/AppPageGooglePlay"
responses:
200:
description: app page successfully stored.
400:
description: bad input parameter or no app reviews could be retrieved.
/hitec/repository/app/store/app-review/google-play/:
post:
description: store a list of google play app reviews.
operationId: postAppReviewGooglePlay
consumes:
- application/json
parameters:
- in: body
name: AppPageGooglePlay
required: true
schema:
$ref: "#/definitions/ProcessedAppReview"
responses:
200:
description: app reviews successfully stored.
400:
description: bad input parameter or no app reviews could be retrieved.
? /hitec/repository/app/observe/app/google-play/package-name/{package_name}/interval/{interval}
: post:
description: Store google play app reviews.
operationId: postObserveAppGooglePlay
parameters:
- name: package_name
in: path
description: the unique package name of the app.
required: true
type: string
- name: interval
in: path
description: how often an app should be crawled. E.g. daily/weekly/monthly.
required: true
type: integer
responses:
200:
description: observable app successfully stored.
400:
description: bad input parameter or no app reviews could be retrieved.
definitions:
AppReview:
type: array
items:
type: object
properties:
title:
type: string
example: My Experience so far
body:
type: string
example: I love this application.
rating:
type: number
example: 4
ProcessedAppReview:
type: array
items:
type: object
properties:
title:
type: string
example: My Experience so far
body:
type: string
example: I love this application.
rating:
type: integer
example: 4
cluster_is_bug_report:
type: boolean
example: true
cluster_is_feature_request:
type: boolean
example: true
cluster_is_other:
type: boolean
example: false
ObservableGooglePlay:
type: array
items:
type: object
properties:
package_name:
type: string
example: com.whatsapp
interval:
type: string
example: daily
AppPageGooglePlay:
type: object
properties:
name:
type: string
package_name:
type: string
date_crawled:
type: number
category:
type: string
usk:
type: string
price:
type: string
description:
type: string
whats_new:
type: array
items:
type: string
rating:
type: number
stars_count:
type: number
count_per_rating:
type: object
properties:
five:
type: number
four:
type: number
three:
type: number
two:
type: number
one:
type: number
estimated_download_number:
type: number
developer:
type: string
top_developer:
type: boolean
contains_ads:
type: boolean
in_app_purchase:
type: boolean
last_update:
type: number
os:
type: string
requires_os_version:
type: string
current_software_version:
type: string
similar_apps:
type: array
items:
type: string