-
-
Notifications
You must be signed in to change notification settings - Fork 86
/
openapi.yaml
128 lines (128 loc) · 3.53 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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
openapi: 3.0.1
info:
title: SymjaTalk
description: A Symja API server.
termsOfService: http://symja.org/about.html
contact:
email: [email protected]
license:
name: GPL-3.0 License
url: https://www.gnu.org/licenses/gpl-3.0.html
version: "0.1"
externalDocs:
description: Find out more about Symja
url: https://github.com/axkr/symja_android_library
servers:
- url: https://symja.org/v1
- url: http://symja.org/v1
tags:
- name: api
description: SymjaTalk
externalDocs:
description: Find out more
url: https://github.com/axkr/symja_android_library
paths:
/api:
get:
tags:
- symjatalk
summary: Get an answer from the server
operationId: answer
parameters:
- name: i
in: query
description: Input expresssion
required: true
schema:
type: string
- name: appid
in: query
description: DEMO
required: true
schema:
type: string
- name: s
in: query
description: Parse strict Symja syntax
schema:
type: string
- name: f
in: query
description: Output formats
required: true
schema:
type: array
items:
type: string
responses:
200:
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/definitions'
405:
description: Invalid input
content: {}
components:
schemas:
definitions:
type: object
properties:
queryresult:
type: object
properties:
success:
type: string
example: "true"
error:
type: object
properties:
code:
type: string
example: 1
msg:
type: string
example: Appid missing
numpods:
type: number
example: 3.0
version:
type: string
example: "0.1"
pods:
type: array
items:
type: object
properties:
title:
type: string
example: Input
scanner:
type: string
example: Identity
error:
type: string
example: "false"
numsubpods:
type: number
example: 1.0
subpods:
type: array
items:
type: object
properties:
plaintext:
type: string
example: Integrate(Cos(x)^5,x)
sinput:
type: string
example: Integrate(Cos(x)^5,x)
mathml:
type: string
example: <math xmlns=http://www.w3.org/1999/xhtml><mo>∫</mo><msup><mrow><mi>Cos</mi><mo>⁡</mo><mrow><mo>(</mo><mrow><mi>x</mi></mrow><mo>)</mo></mrow></mrow><mn>5</mn></msup><mrow><mo>ⅆ</mo><mi>x</mi></mrow></math>
latex:
type: string
example: \int \cos (x)^5\\mathrmdx
html:
type: string