Commit e8c4d43f751b99469a187e2c7a3c10a61bf3f06d
1 parent
bea1faeb
Encore plus de sécurité
Showing
1 changed file
with
7 additions
and
2 deletions
Show diff stats
api.raml
... | ... | @@ -367,6 +367,7 @@ securitySchemes: |
367 | 367 | |
368 | 368 | /consomation: |
369 | 369 | get: |
370 | + securedBy: [oauth_2_0] | |
370 | 371 | description: Obtenir la liste de tout les consomations |
371 | 372 | responses: |
372 | 373 | 200: |
... | ... | @@ -377,15 +378,16 @@ securitySchemes: |
377 | 378 | { |
378 | 379 | "id": 1, |
379 | 380 | "nomConsomation": "juis de fruit", |
380 | - "prix": 4, | |
381 | + "prix": 4 | |
381 | 382 | }, |
382 | 383 | { |
383 | 384 | "id": 2, |
384 | 385 | "nomEvenement": "juis de fruit flambe", |
385 | - "prix": 5, | |
386 | + "prix": 5 | |
386 | 387 | } |
387 | 388 | ] |
388 | 389 | post: |
390 | + securedBy: [oauth_2_0] | |
389 | 391 | description: Permet de creer un nouvel evenement |
390 | 392 | queryParameters: |
391 | 393 | nomConsomation: |
... | ... | @@ -401,6 +403,7 @@ securitySchemes: |
401 | 403 | |
402 | 404 | /{consomationId}: |
403 | 405 | put: |
406 | + securedBy: [oauth_2_0] | |
404 | 407 | queryParameters: |
405 | 408 | nomEvenement: |
406 | 409 | description: Le nom de la Consomation |
... | ... | @@ -416,6 +419,7 @@ securitySchemes: |
416 | 419 | 404: |
417 | 420 | description: L'evenement n'existe pas |
418 | 421 | get: |
422 | + securedBy: [oauth_2_0] | |
419 | 423 | description: Obtenir la Consomation {consomationId} |
420 | 424 | responses: |
421 | 425 | 200: |
... | ... | @@ -433,6 +437,7 @@ securitySchemes: |
433 | 437 | 404: |
434 | 438 | description: Consomation non existante |
435 | 439 | delete: |
440 | + securedBy: [oauth_2_0] | |
436 | 441 | description: Permet de supprimer la consomation {consomationId} |
437 | 442 | responses: |
438 | 443 | 200: | ... | ... |