forked from x-hw/amazing-qr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswagger.yaml
72 lines (61 loc) · 1.86 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
71
72
openapi: 3.0.0
info:
title: My QR
description: |
My QR project is make QR code using your input image or gif.
You can test My QR in open api or **[Web Server](https://master-qrcode-woomurf.endpoint.ainize.ai)**.
---
How to use:
* Enter the URL you want to open with QR code.
* Set Contrast and Brightness.
* Choose the one between color(True) or monochrome(False) for your QR code.
* Add an image you want to combine with QR code.
version: 2.3.1
license:
name: "GPL-3.0 License"
servers:
- url: https://myqr-woomurf.endpoint.ainize.ai/
paths:
/create-qr-code:
post:
requestBody:
required: true
description: |
Enter the URL and image you want.
Choose contrast, brightness and color that is option for QR code image.
[sample Image](https://raw.githubusercontent.com/woomurf/qrcode/master/example/sample.gif)
content:
multipart/form-data:
schema:
type: object
properties:
url:
type: string
image:
type: string
format: binary
contrast:
type: integer
default: 1.0
brightness:
type: integer
default: 1.0
color:
type: boolean
default: true
required:
- url
responses:
'200':
description: success
content:
images/*:
schema:
type: string
format: binary
'400':
description: Bad Request
'429':
description: Too Many Requests
'500':
description: Server side error