@digipair/skill-http 0.96.0 → 0.97.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/schema.fr.json +189 -7
  3. package/schema.json +189 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/skill-http",
3
- "version": "0.96.0",
3
+ "version": "0.97.0",
4
4
  "keywords": [
5
5
  "digipair",
6
6
  "web",
package/schema.fr.json CHANGED
@@ -59,7 +59,33 @@
59
59
  }
60
60
  }
61
61
  ],
62
- "x-events": []
62
+ "x-events": [],
63
+ "responses": {
64
+ "200": {
65
+ "description": "Réponse HTTP réussie",
66
+ "content": {
67
+ "application/json": {
68
+ "schema": {
69
+ "oneOf": [
70
+ {
71
+ "type": "object",
72
+ "description": "Réponse JSON quand type=json (par défaut)"
73
+ },
74
+ {
75
+ "type": "string",
76
+ "description": "Réponse texte quand type=text"
77
+ },
78
+ {
79
+ "type": "string",
80
+ "format": "base64",
81
+ "description": "Réponse encodée en base64 quand type=buffer ou autre"
82
+ }
83
+ ]
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
63
89
  }
64
90
  },
65
91
  "/create": {
@@ -104,7 +130,33 @@
104
130
  }
105
131
  }
106
132
  ],
107
- "x-events": []
133
+ "x-events": [],
134
+ "responses": {
135
+ "200": {
136
+ "description": "Ressource HTTP créée avec succès",
137
+ "content": {
138
+ "application/json": {
139
+ "schema": {
140
+ "oneOf": [
141
+ {
142
+ "type": "object",
143
+ "description": "Réponse JSON quand type=json (par défaut)"
144
+ },
145
+ {
146
+ "type": "string",
147
+ "description": "Réponse texte quand type=text"
148
+ },
149
+ {
150
+ "type": "string",
151
+ "format": "base64",
152
+ "description": "Réponse encodée en base64 quand type=buffer ou autre"
153
+ }
154
+ ]
155
+ }
156
+ }
157
+ }
158
+ }
159
+ }
108
160
  }
109
161
  },
110
162
  "/read": {
@@ -140,7 +192,33 @@
140
192
  }
141
193
  }
142
194
  ],
143
- "x-events": []
195
+ "x-events": [],
196
+ "responses": {
197
+ "200": {
198
+ "description": "Ressource HTTP lue avec succès",
199
+ "content": {
200
+ "application/json": {
201
+ "schema": {
202
+ "oneOf": [
203
+ {
204
+ "type": "object",
205
+ "description": "Réponse JSON quand type=json (par défaut)"
206
+ },
207
+ {
208
+ "type": "string",
209
+ "description": "Réponse texte quand type=text"
210
+ },
211
+ {
212
+ "type": "string",
213
+ "format": "base64",
214
+ "description": "Réponse encodée en base64 quand type=buffer ou autre"
215
+ }
216
+ ]
217
+ }
218
+ }
219
+ }
220
+ }
221
+ }
144
222
  }
145
223
  },
146
224
  "/update": {
@@ -185,7 +263,33 @@
185
263
  }
186
264
  }
187
265
  ],
188
- "x-events": []
266
+ "x-events": [],
267
+ "responses": {
268
+ "200": {
269
+ "description": "Ressource HTTP modifiée avec succès",
270
+ "content": {
271
+ "application/json": {
272
+ "schema": {
273
+ "oneOf": [
274
+ {
275
+ "type": "object",
276
+ "description": "Réponse JSON quand type=json (par défaut)"
277
+ },
278
+ {
279
+ "type": "string",
280
+ "description": "Réponse texte quand type=text"
281
+ },
282
+ {
283
+ "type": "string",
284
+ "format": "base64",
285
+ "description": "Réponse encodée en base64 quand type=buffer ou autre"
286
+ }
287
+ ]
288
+ }
289
+ }
290
+ }
291
+ }
292
+ }
189
293
  }
190
294
  },
191
295
  "/partialUpdate": {
@@ -230,7 +334,33 @@
230
334
  }
231
335
  }
232
336
  ],
233
- "x-events": []
337
+ "x-events": [],
338
+ "responses": {
339
+ "200": {
340
+ "description": "Ressource HTTP partiellement modifiée avec succès",
341
+ "content": {
342
+ "application/json": {
343
+ "schema": {
344
+ "oneOf": [
345
+ {
346
+ "type": "object",
347
+ "description": "Réponse JSON quand type=json (par défaut)"
348
+ },
349
+ {
350
+ "type": "string",
351
+ "description": "Réponse texte quand type=text"
352
+ },
353
+ {
354
+ "type": "string",
355
+ "format": "base64",
356
+ "description": "Réponse encodée en base64 quand type=buffer ou autre"
357
+ }
358
+ ]
359
+ }
360
+ }
361
+ }
362
+ }
363
+ }
234
364
  }
235
365
  },
236
366
  "/remove": {
@@ -266,7 +396,33 @@
266
396
  }
267
397
  }
268
398
  ],
269
- "x-events": []
399
+ "x-events": [],
400
+ "responses": {
401
+ "200": {
402
+ "description": "Ressource HTTP supprimée avec succès",
403
+ "content": {
404
+ "application/json": {
405
+ "schema": {
406
+ "oneOf": [
407
+ {
408
+ "type": "object",
409
+ "description": "Réponse JSON quand type=json (par défaut)"
410
+ },
411
+ {
412
+ "type": "string",
413
+ "description": "Réponse texte quand type=text"
414
+ },
415
+ {
416
+ "type": "string",
417
+ "format": "base64",
418
+ "description": "Réponse encodée en base64 quand type=buffer ou autre"
419
+ }
420
+ ]
421
+ }
422
+ }
423
+ }
424
+ }
425
+ }
270
426
  }
271
427
  },
272
428
 
@@ -324,7 +480,33 @@
324
480
  }
325
481
  }
326
482
  ],
327
- "x-events": []
483
+ "x-events": [],
484
+ "responses": {
485
+ "200": {
486
+ "description": "Ressource HTTP uploadée avec succès",
487
+ "content": {
488
+ "application/json": {
489
+ "schema": {
490
+ "oneOf": [
491
+ {
492
+ "type": "object",
493
+ "description": "Réponse JSON quand type=json (par défaut)"
494
+ },
495
+ {
496
+ "type": "string",
497
+ "description": "Réponse texte quand type=text"
498
+ },
499
+ {
500
+ "type": "string",
501
+ "format": "base64",
502
+ "description": "Réponse encodée en base64 quand type=buffer ou autre"
503
+ }
504
+ ]
505
+ }
506
+ }
507
+ }
508
+ }
509
+ }
328
510
  }
329
511
  }
330
512
  },
package/schema.json CHANGED
@@ -59,7 +59,33 @@
59
59
  }
60
60
  }
61
61
  ],
62
- "x-events": []
62
+ "x-events": [],
63
+ "responses": {
64
+ "200": {
65
+ "description": "Successful HTTP response",
66
+ "content": {
67
+ "application/json": {
68
+ "schema": {
69
+ "oneOf": [
70
+ {
71
+ "type": "object",
72
+ "description": "JSON response when type=json (default)"
73
+ },
74
+ {
75
+ "type": "string",
76
+ "description": "Text response when type=text"
77
+ },
78
+ {
79
+ "type": "string",
80
+ "format": "base64",
81
+ "description": "Base64 encoded response when type=buffer or other"
82
+ }
83
+ ]
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
63
89
  }
64
90
  },
65
91
  "/create": {
@@ -104,7 +130,33 @@
104
130
  }
105
131
  }
106
132
  ],
107
- "x-events": []
133
+ "x-events": [],
134
+ "responses": {
135
+ "200": {
136
+ "description": "Successfully created HTTP resource",
137
+ "content": {
138
+ "application/json": {
139
+ "schema": {
140
+ "oneOf": [
141
+ {
142
+ "type": "object",
143
+ "description": "JSON response when type=json (default)"
144
+ },
145
+ {
146
+ "type": "string",
147
+ "description": "Text response when type=text"
148
+ },
149
+ {
150
+ "type": "string",
151
+ "format": "base64",
152
+ "description": "Base64 encoded response when type=buffer or other"
153
+ }
154
+ ]
155
+ }
156
+ }
157
+ }
158
+ }
159
+ }
108
160
  }
109
161
  },
110
162
  "/read": {
@@ -140,7 +192,33 @@
140
192
  }
141
193
  }
142
194
  ],
143
- "x-events": []
195
+ "x-events": [],
196
+ "responses": {
197
+ "200": {
198
+ "description": "Successfully read HTTP resource",
199
+ "content": {
200
+ "application/json": {
201
+ "schema": {
202
+ "oneOf": [
203
+ {
204
+ "type": "object",
205
+ "description": "JSON response when type=json (default)"
206
+ },
207
+ {
208
+ "type": "string",
209
+ "description": "Text response when type=text"
210
+ },
211
+ {
212
+ "type": "string",
213
+ "format": "base64",
214
+ "description": "Base64 encoded response when type=buffer or other"
215
+ }
216
+ ]
217
+ }
218
+ }
219
+ }
220
+ }
221
+ }
144
222
  }
145
223
  },
146
224
  "/update": {
@@ -185,7 +263,33 @@
185
263
  }
186
264
  }
187
265
  ],
188
- "x-events": []
266
+ "x-events": [],
267
+ "responses": {
268
+ "200": {
269
+ "description": "Successfully updated HTTP resource",
270
+ "content": {
271
+ "application/json": {
272
+ "schema": {
273
+ "oneOf": [
274
+ {
275
+ "type": "object",
276
+ "description": "JSON response when type=json (default)"
277
+ },
278
+ {
279
+ "type": "string",
280
+ "description": "Text response when type=text"
281
+ },
282
+ {
283
+ "type": "string",
284
+ "format": "base64",
285
+ "description": "Base64 encoded response when type=buffer or other"
286
+ }
287
+ ]
288
+ }
289
+ }
290
+ }
291
+ }
292
+ }
189
293
  }
190
294
  },
191
295
  "/partialUpdate": {
@@ -230,7 +334,33 @@
230
334
  }
231
335
  }
232
336
  ],
233
- "x-events": []
337
+ "x-events": [],
338
+ "responses": {
339
+ "200": {
340
+ "description": "Successfully partially updated HTTP resource",
341
+ "content": {
342
+ "application/json": {
343
+ "schema": {
344
+ "oneOf": [
345
+ {
346
+ "type": "object",
347
+ "description": "JSON response when type=json (default)"
348
+ },
349
+ {
350
+ "type": "string",
351
+ "description": "Text response when type=text"
352
+ },
353
+ {
354
+ "type": "string",
355
+ "format": "base64",
356
+ "description": "Base64 encoded response when type=buffer or other"
357
+ }
358
+ ]
359
+ }
360
+ }
361
+ }
362
+ }
363
+ }
234
364
  }
235
365
  },
236
366
  "/remove": {
@@ -266,7 +396,33 @@
266
396
  }
267
397
  }
268
398
  ],
269
- "x-events": []
399
+ "x-events": [],
400
+ "responses": {
401
+ "200": {
402
+ "description": "Successfully removed HTTP resource",
403
+ "content": {
404
+ "application/json": {
405
+ "schema": {
406
+ "oneOf": [
407
+ {
408
+ "type": "object",
409
+ "description": "JSON response when type=json (default)"
410
+ },
411
+ {
412
+ "type": "string",
413
+ "description": "Text response when type=text"
414
+ },
415
+ {
416
+ "type": "string",
417
+ "format": "base64",
418
+ "description": "Base64 encoded response when type=buffer or other"
419
+ }
420
+ ]
421
+ }
422
+ }
423
+ }
424
+ }
425
+ }
270
426
  }
271
427
  },
272
428
  "/upload": {
@@ -323,7 +479,33 @@
323
479
  }
324
480
  }
325
481
  ],
326
- "x-events": []
482
+ "x-events": [],
483
+ "responses": {
484
+ "200": {
485
+ "description": "Successfully uploaded HTTP resource",
486
+ "content": {
487
+ "application/json": {
488
+ "schema": {
489
+ "oneOf": [
490
+ {
491
+ "type": "object",
492
+ "description": "JSON response when type=json (default)"
493
+ },
494
+ {
495
+ "type": "string",
496
+ "description": "Text response when type=text"
497
+ },
498
+ {
499
+ "type": "string",
500
+ "format": "base64",
501
+ "description": "Base64 encoded response when type=buffer or other"
502
+ }
503
+ ]
504
+ }
505
+ }
506
+ }
507
+ }
508
+ }
327
509
  }
328
510
  }
329
511
  },