-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathapi.raml
More file actions
96 lines (95 loc) · 3.76 KB
/
api.raml
File metadata and controls
96 lines (95 loc) · 3.76 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
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
#%RAML 1.0
---
title: compose
baseUri: localhost/{version}
version: v1
/compose:
description: Composes a zipped source directory into a single file
post:
queryParameters:
file:
type: file
fileTypes: ['application/zip']
description: A zip archive of a source code directory
required: true
language:
type: string
description: lowercase common name of programming language used in zip archive
required: true
example: javascript or python
entry:
type: string
description: full path to entry file from the root of the zip archive
required: true
out:
type: string
description: name without extension to return file as, if not provided a random id is used.
required: false
responses:
200:
body:
application/zip:
type: file
400:
body:
application/json:
type: string
example: |
{
"message": "helpful message, usually unset required parameter",
"hint": "hint to correct input if possible",
"status": "400"
}
404:
body:
application/json:
type: string
example: |
{
"message": "Entry file <filename> not found in zip",
"hint": "No suggestions | Maybe one of [list of suggestions] | Maybe this <path/filename>",
"status": "404"
}
501:
body:
application/json:
type: string
example: |
{
"message": "<language> is not implemented",
"hint": "implemented languages are [list of implemented langauges]",
"status": "501"
}
/revert:
description: Reverts a composed file to its directory structure
post:
queryParameters:
file:
type: file
fileTypes: ['text/plain', 'application/python', 'application/javascript']
description: single source file
required: true
language:
type: string
description: common name of programming language used in single source file
required: true
example: javascript or python
out:
type: string
description: name without extension to return file as, if not provided a random id is used.
required: false
responses:
200:
body:
application/zip:
type: file
400:
body:
application/json:
type: string
example: |
{
"message": "helpful message, usually unset required parameter",
"hint": "hint to correct input if possible",
"status": "400"
}