-
Notifications
You must be signed in to change notification settings - Fork 0
/
openApiDocumentation.yaml
103 lines (101 loc) · 4.19 KB
/
openApiDocumentation.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
swagger: "2.0"
info:
title: Project API Rest Google Vision + Nodejs
description: Project that implements an api rest that consumes google cloud vision services for image analysis. Developed with nodejs and deployed in google cloud kebernetes.
version: 1.0.0
host: 35.238.97.163
schemes:
- http
- https
paths:
/objects:
post:
summary: Displays a list of objects present in an image.
consumes:
- multipart/form-data
parameters:
- in: formData
name: uploads
type: file
description: Allows to upload an image and identify the objects present
responses:
200:
description: OK
examples:
application/json: [
{
"mid": "/m/0l7_8",
"locale": "",
"description": "Floor",
"score": 0.9756377339363098,
"confidence": 0,
"topicality": 0.9756377339363098,
"boundingPoly": null,
"locations": [],
"properties": []
},
{
"mid": "/m/01c34b",
"locale": "",
"description": "Flooring",
"score": 0.9541605114936829,
"confidence": 0,
"topicality": 0.9541605114936829,
"boundingPoly": null,
"locations": [],
"properties": []
},
{
"mid": "/m/06ht1",
"locale": "",
"description": "Room",
"score": 0.918979823589325,
"confidence": 0,
"topicality": 0.918979823589325,
"boundingPoly": null,
"locations": [],
"properties": []
},
{
"mid": "/m/04bcr3",
"locale": "",
"description": "Table",
"score": 0.8963702321052551,
"confidence": 0,
"topicality": 0.8963702321052551,
"boundingPoly": null,
"locations": [],
"properties": []
},
{
"mid": "/m/02rfdq",
"locale": "",
"description": "Interior design",
"score": 0.8841562271118164,
"confidence": 0,
"topicality": 0.8841562271118164,
"boundingPoly": null,
"locations": [],
"properties": []
}
]
/explicit:
post:
summary: identify explicit content within an image.
consumes:
- multipart/form-data
parameters:
- in: formData
name: uploads
type: file
description: Lets you upload an image and identify if it has explicit content.
responses:
200:
description: OK
examples:
application/json: [{
"adult": "LIKELY",
"spoof": "VERY_UNLIKELY",
"medical": "UNLIKELY",
"violence": "UNLIKELY"
}]