-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.yaml
103 lines (103 loc) · 3.3 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
openapi: 3.0.1
info:
title: Detect topics from text datasets
description: This API returns a json, containing a topic words, document - topic relation and metric scores. It expects a JSON payload that
contains an dataset and method parameters. A dataset JSON object consists of documents, a document has a number and the document text.
version: '1.0'
servers:
- url: 'https://feed-uvl.ifi.uni-heidelberg.de'
paths:
/hitec/classify/concepts/seanmf/run:
post:
description: returns detected topics, document-topic relation and metric scores
requestBody:
content:
application/json:
schema:
type: object
properties:
method:
type: string
example: "seanmf"
params:
type: object
properties:
alpha:
type: number
example: 0.1
beta:
type: number
example: 0
n_topics:
type: integer
example: 10
max_iter:
type: integer
example: 500
max_err:
type: number
example: 0.1
fix_random:
type: boolean
example: false
vocab_min_count:
type: integer
example: 3
dataset:
type: object
properties:
documents:
type: array
items:
type: object
properties:
number:
type: integer
text:
type: string
examples: {}
responses:
'200':
description: returns detected topics, document-topic relation and metric scores
content:
application/json:
schema:
$ref: '#/components/schemas/Result'
'500':
description: returns code 500 when the request is invalid or there was an error while processing
servers:
- url: 'https://feed-uvl.ifi.uni-heidelberg.de'
servers:
- url: 'https://feed-uvl.ifi.uni-heidelberg.de'
/hitec/classify/concepts/seanmf/status:
get:
description: returns 'operational' when the microservice is running
responses:
'200':
description: returns 'operational' when the microservice is running
content:
application/json:
schema:
type: object
properties:
status:
type: string
examples:
'0':
value: |
{"status":"operational"}
servers:
- url: 'https://feed-uvl.ifi.uni-heidelberg.de'
servers:
- url: 'https://feed-uvl.ifi.uni-heidelberg.de'
components:
schemas:
Result:
type: object
properties:
topics:
type: object
doc_topic:
type: object
metrics:
type: object