1- ---
21openapi : 3.0.0
32info :
4- title : API Documentation
3+ title : API Reference
4+ description : Detailed information about the API endpoints, request/response formats, and parameters.
55 version : 1.0.0
6+ # Definición de la URL base
67servers :
7- - url : https://virtserver.swaggerhub .com/BOHORDOPNG/knockapi/1.0.0
8- description : SwaggerHub API Auto Mocking
8+ - url : https://api.kcompiler .com/api/v2
9+ 910paths :
1011 /addon/compile :
1112 post :
13+ summary : Compile Source Code
1214 requestBody :
15+ required : true
1316 content :
1417 text/plain :
1518 schema :
1619 type : string
17- example : " #include <iostream> \n int main() { \n std::cout << 123 << std::endl; \n return 0; }"
1820 responses :
19- " 200 " :
21+ ' 200 ' :
2022 description : Successful response
21- " 400 " :
22- description : Bad Request
23- " 500 " :
24- description : Internal Server Error
23+ parameters :
24+ - name : title
25+ in : header
26+ schema :
27+ type : string
28+ - name : standar
29+ in : header
30+ schema :
31+ type : string
32+ enum : [c2a, c++11, c++14, c++17]
33+ - name : o
34+ in : header
35+ schema :
36+ type : string
37+ enum : [1, 2, 3]
38+ - name : flags
39+ in : header
40+ schema :
41+ type : string
42+ - name : data
43+ in : header
44+ schema :
45+ type : string
46+ - name : bot
47+ in : header
48+ schema :
49+ type : string
50+ enum : [1]
51+ - name : curl
52+ in : header
53+ schema :
54+ type : string
55+ enum : ["on", "off"]
56+ 2557 /addon/download :
2658 post :
59+ summary : Download Source Code
2760 requestBody :
61+ required : true
2862 content :
2963 text/plain :
3064 schema :
3165 type : string
32- example : " #include <iostream> \n int main() { \n std::cout << 123 << std::endl; \n return 0; }"
3366 responses :
34- " 200 " :
67+ ' 200 ' :
3568 description : Successful response
36- " 400 " :
37- description : Bad Request
38- " 500 " :
39- description : Internal Server Error
69+ parameters :
70+ - name : title
71+ in : header
72+ schema :
73+ type : string
74+ 4075 /addon/assembly :
4176 post :
77+ summary : Generate Assembly Code
4278 requestBody :
79+ required : true
4380 content :
4481 text/plain :
4582 schema :
4683 type : string
4784 responses :
48- " 200 " :
85+ ' 200 ' :
4986 description : Successful response
87+ parameters :
88+ - name : title
89+ in : header
90+ schema :
91+ type : string
92+ - name : standar
93+ in : header
94+ schema :
95+ type : string
96+ enum : [2a, 11, 14, 17]
97+ - name : o
98+ in : header
99+ schema :
100+ type : string
101+ enum : [1, 2, 3]
102+ - name : flags
103+ in : header
104+ schema :
105+ type : string
106+ 50107 /notes/new :
51108 post :
109+ summary : Create a New Note
52110 requestBody :
111+ required : true
53112 content :
54113 application/json :
55114 schema :
56- $ref : ' #/components/schemas/notes_new_body'
115+ type : object
116+ properties :
117+ nombre :
118+ type : string
119+ conten :
120+ type : string
121+ autor :
122+ type : string
57123 responses :
58- " 200 " :
124+ ' 200 ' :
59125 description : Successful response
60- /notes/recollector :
126+ 127+ /notes/find :
61128 get :
129+ summary : Retrieve Notes
62130 responses :
63- " 200 " :
131+ ' 200 ' :
64132 description : Successful response
133+ ' 400 ' :
134+ description : Bad request
135+ ' 404 ' :
136+ description : Not Found
137+ 65138 /notes/items :
66139 post :
140+ summary : Add Items to a Note
67141 responses :
68- " 200 " :
142+ ' 200 ' :
69143 description : Successful response
144+ 70145 /notes/delete :
71146 delete :
147+ summary : Delete a Note
72148 parameters :
73- - name : id
74- in : query
75- required : false
76- style : form
77- explode : true
78- schema :
79- type : array
80- items :
149+ - name : id
150+ in : query
151+ schema :
81152 type : string
82153 responses :
83- " 200 " :
154+ ' 200 ' :
84155 description : Successful response
156+ 157+ /notes/update :
158+ put :
159+ summary : Update a Note
160+ parameters :
161+ - name : id
162+ in : query
163+ schema :
164+ type : string
165+ responses :
166+ ' 200 ' :
167+ description : Successful response
168+ 85169 /notes/show :
86170 get :
171+ summary : Retrieve a Note
87172 parameters :
88- - name : id
89- in : query
90- required : false
91- style : form
92- explode : true
93- schema :
94- type : array
95- items :
96- type : string
173+ - name : id
174+ in : query
175+ schema :
176+ type : array
177+ items :
178+ type : string
97179 responses :
98- " 200 " :
180+ ' 200 ' :
99181 description : Successful response
182+ 100183 /notes/last :
101184 get :
185+ summary : Retrieve the Last Note
102186 responses :
103- " 200 " :
187+ ' 200 ' :
104188 description : Successful response
189+ 105190 /crypto/sha256 :
106191 get :
192+ summary : Generate SHA256 Hash
107193 parameters :
108- - name : plain
109- in : query
110- required : false
111- style : form
112- explode : true
113- schema :
114- type : array
115- items :
116- type : string
117- - name : dg
118- in : query
119- required : false
120- style : form
121- explode : true
122- schema :
123- type : array
124- items :
125- type : string
126- responses :
127- " 200 " :
128- description : Successful response
129- components :
130- schemas :
131- notes_new_body :
132- type : object
133- properties :
134- nombre :
135- type : string
136- conten :
137- type : string
138- autor :
139- type : string
194+ - name : plain
195+ in : query
196+ schema :
197+ type : array
198+ items :
199+ type : string
200+ - name : dg
201+ in : query
202+ schema :
203+ type : array
204+ items :
205+ type : string
206+ enum : [hex, base64]
207+ responses :
208+ ' 200 ' :
209+ description : Successful response
210+ 211+ /codespace/new :
212+ post :
213+ summary : Create a New Codespace
214+ requestBody :
215+ required : true
216+ content :
217+ application/json :
218+ schema :
219+ type : object
220+ properties :
221+ code :
222+ type : string
223+ time :
224+ type : string
225+ responses :
226+ ' 200 ' :
227+ description : Successful response
228+ ' 404 ' :
229+ description : Not Found
230+ 231+ /codespace/find :
232+ get :
233+ summary : Retrieve Codespaces
234+ responses :
235+ ' 200 ' :
236+ description : Successful response
237+ ' 404 ' :
238+ description : Not Found
239+ 240+ /codespace/delete :
241+ delete :
242+ summary : Delete a Codespace
243+ parameters :
244+ - name : id
245+ in : query
246+ schema :
247+ type : string
248+ responses :
249+ ' 200 ' :
250+ description : Successful response
251+ ' 404 ' :
252+ description : Not Found
253+ 254+ /codespace/findone :
255+ get :
256+ summary : Retrieve a Codespace
257+ parameters :
258+ - name : id
259+ in : query
260+ schema :
261+ type : array
262+ items :
263+ type : string
264+ responses :
265+ ' 200 ' :
266+ description : Successful response
267+ ' 404 ' :
268+ description : Not Found
269+ 270+ /codespace/update :
271+ put :
272+ summary : Update a Codespace
273+ parameters :
274+ - name : id
275+ in : query
276+ schema :
277+ type : string
278+ responses :
279+ ' 200 ' :
280+ description : Successful response
281+ ' 404 ' :
282+ description : Not Found
283+ 284+ /sys/exceptions :
285+ get :
286+ summary : Retrieve the exceptions
287+ responses :
288+ ' 200 ' :
289+ description : Successful response
290+ ' 404 ' :
291+ description : Not Found
292+ 293+ /sys/exceptions/last :
294+ get :
295+ summary : Retrieve the last exceptions
296+ responses :
297+ ' 200 ' :
298+ description : Successful response
299+ ' 404 ' :
300+ description : Not Found
0 commit comments