-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodels.yaml
More file actions
36 lines (33 loc) · 967 Bytes
/
Copy pathmodels.yaml
File metadata and controls
36 lines (33 loc) · 967 Bytes
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
swagger: "2.0"
info:
title: Keras Model Server
version: "1.0"
paths:
/point/classify:
post:
summary: Get the poits og the pole and the intersec of the cables
description: Generates a greeting message from a post, such as curl -F file=@sample.png http://localhost:8585/point/classify
operationId: point.post_image
consumes:
- multipart/form-data
produces:
- text/json;
responses:
200:
description: (x,y) poits of the top, botton, and all the intersecs
schema:
type: string
examples:
"text/json": "{top:[x,y],botton:[x,y],intersecs_i:[x,y]}"
parameters:
- name: file
in: formData
description: Image file to extract coordinates.
required: true
type: file
definitions:
default-CORS-response:
default:
headers:
Access-Control-Allow-Origin:
type: string