-
Notifications
You must be signed in to change notification settings - Fork 1
/
swagger.yaml
executable file
·75 lines (74 loc) · 2.07 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
---
swagger: "2.0"
info:
description: This API returns a json, containing a list of processed app reviews. It expects a JSON payload that
contains an array of at least a single app review. An app review json object must contain a field
title (string), body(string), and rating (int).
version: "1.0.1"
title: Classify app reviews from the Google Play Store
contact:
email: [email protected]
host: 217.172.12.199:9651
schemes:
- http
paths:
/hitec/classify/domain/google-play-reviews/:
post:
summary: Get an array of processed app reviews including all ml features.
description: Get an array of processed app reviews including all ml features.
operationId: get_classification_result
produces:
- application/json
consumes:
- application/json
parameters:
- in: body
name: an array of app reviews
schema:
$ref: '#/definitions/AppReview'
required: true
responses:
200:
description: json array of processed app reviews including all ml features.
schema:
$ref: '#/definitions/ProcessedAppReview'
400:
description: error during the processing of the app reviews.
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