Commit ff2fc742562533b889d47143faee755641368fb7
Committed by
Geoffrey PREUD'HOMME
1 parent
e9bf0f84
untab
Showing
1 changed file
with
152 additions
and
152 deletions
Show diff stats
api.raml
... | ... | @@ -274,161 +274,161 @@ securitySchemes: |
274 | 274 | } |
275 | 275 | ] |
276 | 276 | |
277 | - /evenement: | |
278 | - get: | |
279 | - description: Obtenir la liste de tout les evenements | |
280 | - responses: | |
281 | - 200: | |
282 | - body: | |
283 | - application/json: | |
284 | - example: | | |
285 | - [ | |
286 | - { | |
287 | - "id": 1, | |
288 | - "nomEvenement": "patate", | |
289 | - "prix": 4, | |
290 | - "date": "2001-09-11" | |
291 | - }, | |
292 | - { | |
293 | - "id": 2, | |
294 | - "nomEvenement": "patate flambe", | |
295 | - "prix": 5, | |
296 | - "date": "2001-09-11" | |
297 | - } | |
298 | - ] | |
299 | - post: | |
300 | - description: Permet de creer un nouvel evenement | |
301 | - queryParameters: | |
302 | - nomEvenement: | |
303 | - description: Le nom de l'evenement | |
304 | - type: string | |
305 | - required: true | |
306 | - prix: | |
307 | - description: Le prix de l'evenement | |
308 | - type: number | |
309 | - required: true | |
310 | - date: | |
311 | - description: La date de l'evenement | |
312 | - type: date | |
313 | - required: true | |
314 | - responses: | |
315 | - 201: | |
277 | +/evenement: | |
278 | + get: | |
279 | + description: Obtenir la liste de tout les evenements | |
280 | + responses: | |
281 | + 200: | |
282 | + body: | |
283 | + application/json: | |
284 | + example: | | |
285 | + [ | |
286 | + { | |
287 | + "id": 1, | |
288 | + "nomEvenement": "patate", | |
289 | + "prix": 4, | |
290 | + "date": "2001-09-11" | |
291 | + }, | |
292 | + { | |
293 | + "id": 2, | |
294 | + "nomEvenement": "patate flambe", | |
295 | + "prix": 5, | |
296 | + "date": "2001-09-11" | |
297 | + } | |
298 | + ] | |
299 | + post: | |
300 | + description: Permet de creer un nouvel evenement | |
301 | + queryParameters: | |
302 | + nomEvenement: | |
303 | + description: Le nom de l'evenement | |
304 | + type: string | |
305 | + required: true | |
306 | + prix: | |
307 | + description: Le prix de l'evenement | |
308 | + type: number | |
309 | + required: true | |
310 | + date: | |
311 | + description: La date de l'evenement | |
312 | + type: date | |
313 | + required: true | |
314 | + responses: | |
315 | + 201: | |
316 | 316 | |
317 | - /{evenementId}: | |
318 | - put: | |
319 | - queryParameters: | |
320 | - nomEvenement: | |
321 | - description: Le nom de l'evenement | |
322 | - type: string | |
323 | - required: false | |
324 | - prix: | |
325 | - description: Le prix de l'evenement | |
326 | - type: number | |
327 | - required: false | |
328 | - date: | |
329 | - description: La date de l'evenement | |
330 | - type: date | |
331 | - required: false | |
332 | - responses: | |
333 | - 202: | |
334 | - description: Modification pris en compte | |
335 | - 404: | |
336 | - description: L'evenement n'existe pas | |
337 | - get: | |
338 | - description: Obtenir l'evenement {evenementId} | |
339 | - responses: | |
340 | - 200: | |
341 | - body: | |
342 | - application/json: | |
343 | - example: | | |
344 | - [ | |
345 | - { | |
346 | - "id": 1, | |
347 | - "nomEvenement": "patate", | |
348 | - "prix": 4, | |
349 | - "date": "2001-09-11" | |
350 | - } | |
351 | - ] | |
352 | - 404: | |
353 | - description: Evenement non existant | |
354 | - delete: | |
355 | - description: Permet de supprimer l'evenement {evenementId} | |
356 | - responses: | |
357 | - 200: | |
358 | - description: L'evenement a été bien supprimé | |
317 | + /{evenementId}: | |
318 | + put: | |
319 | + queryParameters: | |
320 | + nomEvenement: | |
321 | + description: Le nom de l'evenement | |
322 | + type: string | |
323 | + required: false | |
324 | + prix: | |
325 | + description: Le prix de l'evenement | |
326 | + type: number | |
327 | + required: false | |
328 | + date: | |
329 | + description: La date de l'evenement | |
330 | + type: date | |
331 | + required: false | |
332 | + responses: | |
333 | + 202: | |
334 | + description: Modification pris en compte | |
335 | + 404: | |
336 | + description: L'evenement n'existe pas | |
337 | + get: | |
338 | + description: Obtenir l'evenement {evenementId} | |
339 | + responses: | |
340 | + 200: | |
341 | + body: | |
342 | + application/json: | |
343 | + example: | | |
344 | + [ | |
345 | + { | |
346 | + "id": 1, | |
347 | + "nomEvenement": "patate", | |
348 | + "prix": 4, | |
349 | + "date": "2001-09-11" | |
350 | + } | |
351 | + ] | |
352 | + 404: | |
353 | + description: Evenement non existant | |
354 | + delete: | |
355 | + description: Permet de supprimer l'evenement {evenementId} | |
356 | + responses: | |
357 | + 200: | |
358 | + description: L'evenement a été bien supprimé | |
359 | 359 | |
360 | 360 | |
361 | 361 | |
362 | 362 | |
363 | - /consomation: | |
364 | - get: | |
365 | - description: Obtenir la liste de tout les consomations | |
366 | - responses: | |
367 | - 200: | |
368 | - body: | |
369 | - application/json: | |
370 | - example: | | |
371 | - [ | |
372 | - { | |
373 | - "id": 1, | |
374 | - "nomConsomation": "juis de fruit", | |
375 | - "prix": 4, | |
376 | - }, | |
377 | - { | |
378 | - "id": 2, | |
379 | - "nomEvenement": "juis de fruit flambe", | |
380 | - "prix": 5, | |
381 | - } | |
382 | - ] | |
383 | - post: | |
384 | - description: Permet de creer un nouvel evenement | |
385 | - queryParameters: | |
386 | - nomConsomation: | |
387 | - description: Le nom de la Consomation | |
388 | - type: string | |
389 | - required: true | |
390 | - prix: | |
391 | - description: Le prix de la Consomation | |
392 | - type: number | |
393 | - required: true | |
394 | - responses: | |
395 | - 201: | |
363 | +/consomation: | |
364 | + get: | |
365 | + description: Obtenir la liste de tout les consomations | |
366 | + responses: | |
367 | + 200: | |
368 | + body: | |
369 | + application/json: | |
370 | + example: | | |
371 | + [ | |
372 | + { | |
373 | + "id": 1, | |
374 | + "nomConsomation": "juis de fruit", | |
375 | + "prix": 4, | |
376 | + }, | |
377 | + { | |
378 | + "id": 2, | |
379 | + "nomEvenement": "juis de fruit flambe", | |
380 | + "prix": 5, | |
381 | + } | |
382 | + ] | |
383 | + post: | |
384 | + description: Permet de creer un nouvel evenement | |
385 | + queryParameters: | |
386 | + nomConsomation: | |
387 | + description: Le nom de la Consomation | |
388 | + type: string | |
389 | + required: true | |
390 | + prix: | |
391 | + description: Le prix de la Consomation | |
392 | + type: number | |
393 | + required: true | |
394 | + responses: | |
395 | + 201: | |
396 | 396 | |
397 | - /{consomationId}: | |
398 | - put: | |
399 | - queryParameters: | |
400 | - nomEvenement: | |
401 | - description: Le nom de la Consomation | |
402 | - type: string | |
403 | - required: false | |
404 | - prix: | |
405 | - description: Le prix de la Consomation | |
406 | - type: number | |
407 | - required: false | |
408 | - responses: | |
409 | - 202: | |
410 | - description: Modification pris en compte | |
411 | - 404: | |
412 | - description: L'evenement n'existe pas | |
413 | - get: | |
414 | - description: Obtenir la Consomation {consomationId} | |
415 | - responses: | |
416 | - 200: | |
417 | - body: | |
418 | - application/json: | |
419 | - example: | | |
420 | - [ | |
421 | - { | |
422 | - "id": 1, | |
423 | - "nomEvenement": "patate", | |
424 | - "prix": 4, | |
425 | - "date": "2001-09-11" | |
426 | - } | |
427 | - ] | |
428 | - 404: | |
429 | - description: Consomation non existante | |
430 | - delete: | |
431 | - description: Permet de supprimer la consomation {consomationId} | |
432 | - responses: | |
433 | - 200: | |
434 | - description: La consomation a été bien supprime | |
397 | + /{consomationId}: | |
398 | + put: | |
399 | + queryParameters: | |
400 | + nomEvenement: | |
401 | + description: Le nom de la Consomation | |
402 | + type: string | |
403 | + required: false | |
404 | + prix: | |
405 | + description: Le prix de la Consomation | |
406 | + type: number | |
407 | + required: false | |
408 | + responses: | |
409 | + 202: | |
410 | + description: Modification pris en compte | |
411 | + 404: | |
412 | + description: L'evenement n'existe pas | |
413 | + get: | |
414 | + description: Obtenir la Consomation {consomationId} | |
415 | + responses: | |
416 | + 200: | |
417 | + body: | |
418 | + application/json: | |
419 | + example: | | |
420 | + [ | |
421 | + { | |
422 | + "id": 1, | |
423 | + "nomEvenement": "patate", | |
424 | + "prix": 4, | |
425 | + "date": "2001-09-11" | |
426 | + } | |
427 | + ] | |
428 | + 404: | |
429 | + description: Consomation non existante | |
430 | + delete: | |
431 | + description: Permet de supprimer la consomation {consomationId} | |
432 | + responses: | |
433 | + 200: | |
434 | + description: La consomation a été bien supprime | ... | ... |