forked from kmswlee/DeOldify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger-deoldify.yaml
100 lines (99 loc) · 3.25 KB
/
swagger-deoldify.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
openapi: 3.0.1
info:
title: DeOldify
description: "Simply put, the mission of this project is to colorize and restore old images and film footage. We'll get into the details in a bit, but first let's see some pretty pictures.
if you want to colorize sketch, <https://deoldify-api-ani.kmswlee.endpoint.ainize.ai>.
also Size of image file should be less than 5Mb."
contact:
name: Lee WooJae
email: [email protected]
version: 1.0.0
license:
name: MIT License
url: https://github.com/jantic/DeOldify
servers:
- url: https://master-de-oldify-kmswlee.endpoint.ainize.ai
paths:
/process-img:
post:
tags:
- DeOldify-image
requestBody:
content:
application/json:
schema:
type: object
properties:
source_url:
type: string
required:
- source_url
responses:
'200':
description: translation success
content:
image/*:
schema:
type: string
format: binary
'400':
description: Bad request (File Not Uploaded)
'429':
description: busy to server, please retry again.
'500':
description: Server Side Error (Model Test Error, File Move Error)
/process-img-form:
post:
tags:
- DeOldify-image
requestBody:
content:
multipart/form-data:
schema:
type: object
properties:
source_image:
type: string
format: binary
required:
- source_image
responses:
'200':
description: translation success
content:
image/*:
schema:
type: string
format: binary
'400':
description: Bad request (File Not Uploaded)
'429':
description: busy to server, please retry again.
'500':
description: Server Side Error (Model Test Error, File Move Error)
# /process-img-ani:
# post:
# tags:
# - DeOldify-image-ani
# requestBody:
# content:
# application/json:
# schema:
# type: object
# properties:
# source_url:
# type: string
# required:
# - source_url
# responses:
# '200':
# description: translation success
# content:
# image/*:
# schema:
# type: string
# format: binary
# '400':
# description: Bad request (File Not Uploaded)
# '500':
# description: Server Side Error (Model Test Error, File Move Error)