-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathopenapi.yaml
More file actions
43 lines (43 loc) · 1.2 KB
/
openapi.yaml
File metadata and controls
43 lines (43 loc) · 1.2 KB
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
openapi: 3.1.0
info:
title: SWI-Prolog Compiler API
description: A plugin to compile SWI-Prolog and return success or errors.
version: 0.0.0.1
servers:
- url: http://localhost:5003
paths:
/compile:
post:
operationId: compileCode
summary: compile
requestBody:
description: Compile SWI-Prolog code
required: true
content:
application/json:
schema:
type: object
properties:
code:
type: string
description: SWI-Prolog code to compile
responses:
'200':
description: Compilation result
content:
application/json:
schema:
type: object
properties:
success:
type: boolean
description: Indicates whether the compilation was successful
errors:
type: array
items:
type: string
description: Compilation errors (if any)
'400':
description: Invalid request
'500':
description: Internal server error