forked from axkr/symja_android_library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml
117 lines (117 loc) · 3 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
swagger: "2.0"
info:
description: "A Symja API server."
version: "0.1"
title: "SymjaTalk"
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"
host: "symja.org"
basePath: "/v1"
tags:
- name: "api"
description: "SymjaTalk"
externalDocs:
description: "Find out more"
url: "https://github.com/axkr/symja_android_library"
schemes:
- "https"
- "http"
paths:
/api:
get:
tags:
- "symjatalk"
summary: "Get an answer from the server"
description: ""
operationId: "answer"
consumes:
- "application/json"
produces:
- "application/json"
parameters:
- in: "query"
name: "i"
description: "Input expresssion"
required: true
type: string
- in: "query"
name: "appid"
description: "DEMO"
required: true
type: string
- in: "query"
name: "s"
description: "Parse strict Symja syntax"
required: false
type: string
- in: "query"
name: "f"
description: "Output format"
required: false
type: string
responses:
'200':
description: OK
schema:
$ref: "#/definitions/queryresult"
"405":
description: "Invalid input"
definitions:
queryresult:
type: object
properties:
success:
type: string
example: true
error:
type: string
example: false
numpods:
type: number
example: 3
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
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
externalDocs:
description: "Find out more about Symja"
url: "https://github.com/axkr/symja_android_library"