-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmaster.yaml
More file actions
90 lines (90 loc) · 2.24 KB
/
master.yaml
File metadata and controls
90 lines (90 loc) · 2.24 KB
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
openapi: 3.0.0
info:
version: 1.0-oas3
title: Heart Failure Prediction
description: A way to input data into a model for predicting the mortality caused by Heart Failure.
termsOfService: 'http://swagger.io/terms/'
contact:
name: Benjamin Bamidele
license:
name: Apache
paths:
/model/{arg1}:
get:
tags:
- LogClassify
operationId: my_python_dir.model_prediction.heartfailure
description:
This is the data input from the user that is sent as an array
parameters:
- in: path
name: arg1
required: true
schema:
type: array
items:
type: number
minItems: 1
style: simple
explode: true
- in: query
name: metadata
schema:
type: boolean
responses:
'200':
description: 'Returned result of predition to user as array'
content:
application/json:
schema:
$ref: '#/components/schemas/LogClassify'
'500':
description: 'Invalid Input'
content:
application/json:
schema:
$ref: '#/components/schemas/LogClassify'
/file/<filename>:
post:
tags:
- Upload
summary: Upload a file
operationId: my_python_dir.model_prediction.upload
parameters:
- name: filename
in: query
description: filename to be uploaded
required: true
schema:
type: string
responses:
'500':
description: Invalid input
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
file:
type: string
format: binary
get:
tags:
- Download
summary: Download a file
operationId: my_python_dir.model_prediction.download
responses:
'500':
description: Invalid input
servers:
- url: 'http://localhost:8080/'
components:
schemas:
LogClassify:
type: object
required:
- model
properties:
model:
type: string