-
Notifications
You must be signed in to change notification settings - Fork 2
/
swagger.yaml
70 lines (63 loc) · 1.92 KB
/
swagger.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
openapi: '3.0.2'
info:
title: Image Background Changer
description: |
This API is about Image Background Changer opensource project.
You can change backgounrd of image depending on backgounrd image you upload.
You can test Image Background Changer in API or **[Web Server](https://main-image-background-changer-589hero.endpoint.ainize.ai/)**.
Rembg Package Repo used for project : [https://github.com/danielgatis/rembg](https://github.com/danielgatis/rembg)
---
How to use:
* Upload an image to change the background. -> orgImage
* Upload an image that will be the background. -> bgImage
* Check out the output image with changed background!
version: '1.0'
license:
name: MIT License
url: https://github.com/589hero/image-background-changer/blob/main/LICENSE
contact:
name: Donghoon Baek
email: [email protected]
servers:
- url: https://main-image-background-changer-589hero.endpoint.ainize.ai/
paths:
/change-bg:
post:
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
properties:
orgImage:
type: string
format: binary
bgImage:
type: string
format: binary
required:
- orgImage
- bgImage
encoding:
file:
contentType: image/png, image/jpg, image/jpeg
responses:
'200':
description: success
content:
image/*:
schema:
type: string
format: binary
'400':
description: Empty Field
'404':
description: Model Not Found
'500':
description: Server Error
/healthz:
get:
responses:
'200':
description: ok