-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathlambda.wadl
More file actions
179 lines (176 loc) · 5.58 KB
/
lambda.wadl
File metadata and controls
179 lines (176 loc) · 5.58 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<!-- Webshell APIs
Copyright (C) 2013 Webshell SAS
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:apigee="http://api.apigee.com/wadl/2010/07/"
xmlns="http://wadl.dev.java.net/2009/02" xmlns:t="urn:github:githubresponse"
xmlns:webshell="http://webshell.io/wadl/2012/06/"
xsi:schemaLocation="http://wadl.dev.java.net/2009/02 http://apigee.com/schemas/wadl-schema.xsd http://api.apigee.com/wadl/2010/07/ http://apigee.com/schemas/apigee-wadl-extensions.xsd http://webshell.io/wadl/2012/06/ http://webshell.io/wadl/webshell-extensions.xsd">
<resources base="https://lambda-face-recognition.p.mashape.com">
<resource path="/album">
<method id="createAlbum" name="POST">
<apigee:tags>
<apigee:tag primary="true">All</apigee:tag>
</apigee:tags>
<webshell:authentication required="true"/>
<doc>Create a new photo album, be sure to save your albumkey!</doc>
<request>
<param name="album" required="true" type="string" style="query">
<doc>
The name of the album to create</doc>
</param>
</request>
</method>
</resource>
<resource path="/detect">
<method id="detect" name="POST">
<apigee:tags>
<apigee:tag primary="true">All</apigee:tag>
</apigee:tags>
<webshell:authentication required="true"/>
<doc>Detect faces in an image, as well as extract facial features (eyes, nose, mouth)</doc>
<request>
<param name="files" required="false" type="binary" style="query">
<doc>
A set of binary image files</doc>
</param>
<param name="urls" required="false" type="string" style="query">
<doc>
A comma separated list of image URLs</doc>
</param>
</request>
</method>
</resource>
<resource path="/album_rebuild">
<method id="rebuildAlbum" name="GET">
<apigee:tags>
<apigee:tag primary="true">All</apigee:tag>
</apigee:tags>
<webshell:authentication required="true"/>
<doc>Manually rebuild an album after adding training examples</doc>
<request>
<param name="album" required="true" type="string" style="query">
<doc>
The name of the album to rebuild</doc>
</param>
<param name="albumkey" required="true" type="string" style="query">
<doc>
The albumkey for the album to rebuild</doc>
</param>
</request>
</method>
</resource>
<resource path="/recognize">
<method id="recognize" name="POST">
<apigee:tags>
<apigee:tag primary="true">All</apigee:tag>
</apigee:tags>
<webshell:authentication required="true"/>
<doc>Recognize the person in an image</doc>
<request>
<param name="album" required="true" type="string" style="query">
<doc>
The album you want to look in</doc>
</param>
<param name="albumkey" required="true" type="string" style="query">
<doc>
Your album key</doc>
</param>
<param name="files" required="false" type="binary" style="query">
<doc>
A set of binary image files to recognize</doc>
</param>
<param name="urls" required="false" type="string" style="query">
<doc>
A comma separated list of image URLs to recognize</doc>
</param>
</request>
</method>
</resource>
<resource path="/album_train">
<method id="trainAlbum" name="POST">
<apigee:tags>
<apigee:tag primary="true">All</apigee:tag>
</apigee:tags>
<webshell:authentication required="true"/>
<doc>Add an image and entryid to an album</doc>
<request>
<param name="album" required="true" type="string" style="query">
<doc>
The name of the album</doc>
</param>
<param name="albumkey" required="true" type="string" style="query">
<doc>
The album key for the album</doc>
</param>
<param name="entryid" required="true" type="string" style="query">
<doc>
An entry id for the person you are uploading pictures of</doc>
</param>
<param name="files" required="false" type="binary" style="query">
<doc>
An image containing the person you are adding to the album</doc>
</param>
<param name="urls" required="false" type="string" style="query">
<doc>
A comma separated list of image urls</doc>
</param>
</request>
</method>
</resource>
<resource path="/album">
<method id="viewAlbum" name="GET">
<apigee:tags>
<apigee:tag primary="true">All</apigee:tag>
</apigee:tags>
<webshell:authentication required="true"/>
<doc>View one of your albums, with a visual summary.</doc>
<request>
<param name="album" required="true" type="string" style="query">
<doc>
The name of the album you want to view</doc>
</param>
<param name="albumkey" required="true" type="string" style="query">
<doc>
The album key of the album you want to view</doc>
</param>
</request>
</method>
</resource>
<resource path="/album_train">
<method id="viewEntry" name="GET">
<apigee:tags>
<apigee:tag primary="true">All</apigee:tag>
</apigee:tags>
<webshell:authentication required="true"/>
<doc>View an entry in an album, telling you how many training images it has</doc>
<request>
<param name="album" required="true" type="string" style="query">
<doc>
The name of the album</doc>
</param>
<param name="albumkey" required="true" type="string" style="query">
<doc>
The album key for the album</doc>
</param>
<param name="entryid" required="true" type="string" style="query">
<doc>
An entry id for the person you with to view</doc>
</param>
</request>
</method>
</resource>
</resources>
</application>