- add face pixelate model for train/evaluate
[face-privacy-filter.git] / testing / swagger.yaml
1 swagger: '2.0'
2 info:
3   title: Face Privacy Filter Example
4   version: "0.1"
5 consumes:
6   - application/json
7 produces:
8   - application/json
9 paths:
10   /transform:
11     post:
12       operationId: app.transform
13       summary: Post an image for processing
14       parameters:
15         - $ref: '#/parameters/mime_type'
16         - $ref: '#/parameters/image_binary'
17         - $ref: '#/parameters/rich_output'
18       responses:
19         200:
20           description: Image processed
21
22 parameters:
23   mime_type:
24     name: mime_type
25     description: Image MimeType
26     in: formData
27     type: string
28     required: true
29     default: 'image/jpeg'
30     # pattern: "^[a-zA-Z0-9-]+$"
31   image_binary:
32     name: image_binary
33     description: Binary image blob
34     in: formData
35     type: file
36     required: true
37   rich_output:
38     name: rich_output
39     description: Rich or regular output
40     in: formData
41     type: boolean
42     required: false
43     default: true
44