-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.yaml
72 lines (70 loc) · 2.03 KB
/
openapi.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
openapi: 3.0.1
info:
title: "RESTful API for: HD.Wall"
description: "Wall detection service"
version: "1.0.0"
servers:
- url: "http://8.142.65.9:8081/predictions"
paths:
/wall_seg_unet:
post:
description: "Get wall vector."
requestBody:
content:
image/*:
schema:
type: string
format: binary
responses:
'200':
description: Prediction result for Wall
content:
application/json:
schema:
type: array
required:
- code
- type
- message
items:
type: object
properties:
sPoint:
type: array
items:
type: integer
example: [400.0, 527.5]
ePoint:
type: array
items:
type: integer
example: [358.0, 527.5]
width:
type: integer
example: 20
height:
type: integer
example: 40
isStructural:
type: boolean
example: true
'500':
description: Internal Server Error
content:
application/json:
schema:
type: object
required:
- code
- type
- message
properties:
code:
type: integer
description: Error code.
type:
type: string
description: Error type.
message:
type: string
description: Error message.