Use "face privacy" in headings
[face-privacy-filter.git] / testing / swagger.yaml
1 swagger: '2.0'
2 info:
3   title: Face Privacy Filter Example
4   version: "0.2"
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       responses:
18         200:
19           description: Image processed
20
21 parameters:
22   mime_type:
23     name: mime_type
24     description: Image MimeType
25     in: formData
26     type: string
27     required: true
28     default: 'image/jpeg'
29     # pattern: "^[a-zA-Z0-9-]+$"
30   image_binary:
31     name: image_binary
32     description: Binary image blob
33     in: formData
34     type: file
35     format: base64
36     required: true