-
Notifications
You must be signed in to change notification settings - Fork 2
/
swagger.yaml
executable file
·114 lines (114 loc) · 3.76 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
---
swagger: "2.0"
info:
description: This API returns a json, containing a list of app reviews from the Google Play store.
version: "1.0.0"
title: Get Reviews
contact:
email: [email protected]
host: api.openreq.eu
schemes:
- https
paths:
/hitec/crawl/app-reviews/google-play/{package_name}/limit/{limit}:
get:
description: Get a defined number of app reviews for a specific app.
operationId: getAppReviews
produces:
- application/json
parameters:
- name: package_name
in: path
description: the unique package name of the app.
required: true
type: string
- name: limit
in: path
description: maximum number of app reviews to return. 0 must be used if all available app reviews should be crawled.
required: true
type: integer
maximum: 4000
minimum: 0
responses:
200:
description: list of reviews.
schema:
$ref: "#/definitions/AppReviewResponse"
400:
description: bad input parameter or no tweet could be retrieved.
/hitec/crawl/app-reviews/google-play/static/:
get:
description: Get all contained app reviews from the given URL.
operationId: getAppReviewsStatic
produces:
- application/json
parameters:
- name: url_target
in: query
description: encoded URL of the site you want to parse
required: true
type: string
responses:
200:
description: list of tweets.
schema:
$ref: "#/definitions/AppReviewResponse"
400:
description: URL is not reachable or the reviews-container couldn't be found
definitions:
AppReviewResponse:
type: object
properties:
status:
type: number
example: 200
description: HTTP response code
error:
type: string
example: "Given URL couldn't be parsed"
description: Error message to point out what went wrong
reviews:
type: array
items:
$ref: '#/definitions/AppReview'
AppReview:
type: object
properties:
review_id:
type: string
example: gp:AOqpTOH9eJEq3-jnn2A09rSS9YeT2VYirhXf3M_rkNjqNy8z3O4rXc05BV0OhPNz5UBhGtobuuLY9PdkkakvJG0
description: gogole play unique review id, not provided anymore while parsing a page
package_name:
type: string
example: com.whatsapp
description: unique app id in google play
author:
type: string
example: Google-Play User
description: the name of the person who wrote the review
date_posted:
type: int
example: 20190810
description: date date of the post as number (YearMonthDay)
rating:
type: int
example: 5
description: number of stars the person gave your app (from 1 to 5)
title:
type: string
example: Review's Title
description: the optional title of the review
body:
type: string
example: The App is pretty amazing, i love it!
description: the actual review provided by the user
perma_link:
type: string
example: https://play.google.com/store/apps/details?id=com.whatsapp&hl=en&reviewId=gp%3AAOqpTOH9eJEq3-jnn2A09rSS9YeT2VYirhXf3M_rkNjqNy8z3O4rXc05BV0OhPNz5UBhGtobuuLY9PdkkakvJG0
description: the link to the review, not provided anymore while parsing a page
errors:
type: array
items:
type: string
example: ["review_id couldn't be set", "perma_link couldn't be set"]
description: the errors which eccurred while trying to fill the review object