-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathopenapi.yaml
59 lines (59 loc) · 1.75 KB
/
openapi.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
openapi: 3.1.0
info:
title: opcut
version: 0.0.2
paths:
'/calculate':
post:
parameters:
- name: method
in: query
required: true
schema:
enum:
- greedy
- forward_greedy
- greedy_native
- forward_greedy_native
requestBody:
content:
application/json:
schema:
$ref: "opcut.yaml#/$defs/params"
responses:
"200":
content:
application/json:
schema:
$ref: "opcut.yaml#/$defs/result"
default:
content:
text/plain:
description: error message
'/generate':
post:
parameters:
- name: output_format
in: query
required: true
schema:
enum:
- pdf
- svg
- name: panel
in: query
required: false
requestBody:
content:
application/json:
schema:
$ref: "opcut.yaml#/$defs/result"
responses:
"200":
content:
application/pdf: {}
image/svg+xml: {}
default:
content:
text/plain:
description: error message