You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
summary: List of currently supported Edulint versions.
46
+
responses:
47
+
"200":
48
+
description: The versions are sorted -- the newest version is listed first.
49
+
content:
50
+
application/json:
51
+
schema:
52
+
type: array
53
+
items:
54
+
type: string
55
+
example: ["2.10.2", "2.9.2"]
56
+
36
57
/api/code:
37
58
post:
38
59
tags:
@@ -41,11 +62,11 @@ paths:
41
62
# description: Update an existing pet by Id
42
63
# operationId: updatePet
43
64
requestBody:
44
-
description: the code to upload
65
+
description: information on the code to upload
45
66
content:
46
67
application/json:
47
68
schema:
48
-
$ref: "#/components/schemas/Code"
69
+
$ref: "#/components/schemas/CodeRequest"
49
70
# application/xml:
50
71
# schema:
51
72
# $ref: "#/components/schemas/Pet"
@@ -63,6 +84,8 @@ paths:
63
84
application/json:
64
85
schema:
65
86
$ref: "#/components/schemas/Hash"
87
+
"400":
88
+
description: Missing parameter with uploaded code
66
89
# security:
67
90
# - petstore_auth:
68
91
# - write:pets
@@ -105,24 +128,36 @@ paths:
105
128
parameters:
106
129
- name: version
107
130
in: path
108
-
description: the version of EduLint to use
131
+
description: The version of EduLint to use. You can use either a specific version (e.g. 2.0.0) or "latest".
109
132
required: true
110
133
schema:
111
134
type: string
112
-
example: 2.0.0
135
+
example: latest
113
136
- name: hash
114
137
in: path
115
138
description: the hash of the code to analyze
116
139
required: true
117
140
schema:
118
141
$ref: "#/components/schemas/HashStr"
142
+
- name: config
143
+
in: query
144
+
description: extra configuration to use (equivalent to command line configuration described in [EduLint's documentation](https://edulint.rtfd.io#configuration)).
145
+
required: false
146
+
schema:
147
+
$ref: "#/components/schemas/QueryConfig"
148
+
- name: use-cached-result
149
+
in: query
150
+
description: enables/disables using cached linting results
151
+
required: false
152
+
schema:
153
+
$ref: "#/components/schemas/TrueBoolean"
119
154
responses:
120
155
"200":
121
156
description: successful operation
122
157
content:
123
158
application/json:
124
159
schema:
125
-
$ref: "#/components/schemas/Problems"
160
+
$ref: "#/components/schemas/AnalyzeResponse"
126
161
"400":
127
162
description: Invalid hash supplied
128
163
"404":
@@ -136,25 +171,37 @@ paths:
136
171
parameters:
137
172
- name: version
138
173
in: path
139
-
description: the version of EduLint to use
174
+
description: The version of EduLint to use. You can use either a specific version (e.g. 2.0.0) or "latest".
140
175
required: true
141
176
schema:
142
177
type: string
143
-
example: 2.0.0
178
+
example: latest
179
+
- name: config
180
+
in: query
181
+
description: extra configuration to use (equivalent to command line configuration described in [EduLint's documentation](https://edulint.rtfd.io#configuration)).
182
+
required: false
183
+
schema:
184
+
$ref: "#/components/schemas/QueryConfig"
185
+
- name: use-cached-result
186
+
in: query
187
+
description: enables/disables using cached linting results
@@ -30,7 +32,7 @@ import { Configuration } from '../configurat
30
32
@Injectable()
31
33
exportclassAPIService{
32
34
33
-
protectedbasePath='';
35
+
protectedbasePath='https://edulint.com';
34
36
publicdefaultHeaders=newHttpHeaders();
35
37
publicconfiguration=newConfiguration();
36
38
@@ -62,15 +64,17 @@ export class APIService {
62
64
/**
63
65
* Analyzes the code with the given hash with the given version of EduLint
64
66
*
65
-
* @param version the version of EduLint to use
67
+
* @param version The version of EduLint to use. You can use either a specific version (e.g. 2.0.0) or \"latest\".
66
68
* @param hash the hash of the code to analyze
69
+
* @param config extra configuration to use (equivalent to command line configuration described in [EduLint's documentation](https://edulint.rtfd.io#configuration)).
70
+
* @param use_cached_result enables/disables using cached linting results
67
71
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
68
72
* @param reportProgress flag to report request and response progress.
thrownewError('Required parameter body was null or undefined when calling apiCodePost.');
@@ -197,14 +212,16 @@ export class APIService {
197
212
* Uploads some code and returns its analysis
198
213
* This endpoint combines the /code and /api/{version}/analyze/{hash} endpoints.
199
214
* @param body the code to upload and analyze
200
-
* @param version the version of EduLint to use
215
+
* @param version The version of EduLint to use. You can use either a specific version (e.g. 2.0.0) or \"latest\".
216
+
* @param config extra configuration to use (equivalent to command line configuration described in [EduLint's documentation](https://edulint.rtfd.io#configuration)).
217
+
* @param use_cached_result enables/disables using cached linting results
201
218
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
202
219
* @param reportProgress flag to report request and response progress.
0 commit comments