forked from jantic/DeOldify
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathswagger-deoldify.yaml
70 lines (69 loc) · 2.31 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
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:
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-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)