Blame view

api.raml 19.2 KB
90a48e21   Geoffrey PREUD'HOMME   Personnes
1
  #%RAML 0.8
ea2f57e1   Geoffrey PREUD'HOMME   Test API
2
3
4
  title: API d'Etunicorn
  baseUri: https://etunicorn.plil.net/{version}/
  version: v1
153931ca   Geoffrey PREUD'HOMME   Benoît, apprend à...
5
  # Les codes 400 sont implicites
509e1d6e   Geoffrey PREUD'HOMME   API: Login
6
  /login:
b8824e3a   Geoffrey PREUD'HOMME   Avec le login, ce...
7
8
    post:
      description: Instancie une nouvelle connexion
6ae819f3   badetitou   Go to JSON
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
      body:
          application/json:
              schema: |
                  {
                  "type": "object",
                  "$schema": "http://json-schema.org/draft-03/schema",
                  "id": "http://jsonschema.net",
                  "required": true,
                  "properties": {
                      "login": {
                          "type": "string",
                          "required": true
                      },
                      "password": {
                          "type": "string",
                          "required": true
                      }
                  }
                  }
e9bf0f84   badetitou   Evenement
28
      responses:
b8824e3a   Geoffrey PREUD'HOMME   Avec le login, ce...
29
30
31
32
        200:
          description: Authentification réussie
          body:
            application/json:
90a48e21   Geoffrey PREUD'HOMME   Personnes
33
              example: |
b8824e3a   Geoffrey PREUD'HOMME   Avec le login, ce...
34
35
                {
                  "token": "ooT6zahdura7vaethuiph1ugiph6co",
377081e3   Geoffrey PREUD'HOMME   Rôles et permissions
36
37
38
39
                  "expire": 1485607703,
                  "role": "admin",
                  "permissions": [
                    {
3b818f18   Geoffrey PREUD'HOMME   Ajout des permiss...
40
                      "nom": "CREER_EVNMT"
377081e3   Geoffrey PREUD'HOMME   Rôles et permissions
41
42
                    },
                    {
3b818f18   Geoffrey PREUD'HOMME   Ajout des permiss...
43
                      "nom": "SUPPRIMER_EVNMT"
377081e3   Geoffrey PREUD'HOMME   Rôles et permissions
44
45
                    }
                  ]
b8824e3a   Geoffrey PREUD'HOMME   Avec le login, ce...
46
47
48
                }
        401:
          description: Authentication échouée
474776a8   Geoffrey PREUD'HOMME   Implémentation JS...
49
50
51
52
53
    delete:
      description: Se déconnecter
      responses:
        204:
          description: Déconnecté avec succès
ea2f57e1   Geoffrey PREUD'HOMME   Test API
54
  /personne:
509e1d6e   Geoffrey PREUD'HOMME   API: Login
55
    get:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
56
      description: Obtenir la liste des persones. Nécessite PERSONNE_LIST.
3b818f18   Geoffrey PREUD'HOMME   Ajout des permiss...
57
      responses:
0e498f62   Geoffrey PREUD'HOMME   Consomation → Con...
58
59
        200:
          body:
509e1d6e   Geoffrey PREUD'HOMME   API: Login
60
            application/json:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
    post:
      description: Ajoute une nouvelle personne. Nécessite PERSONNE_ADD.
      body:
        application/json:
            schema: |
                {
                "type": "object",
                "$schema": "http://json-schema.org/draft-03/schema",
                "id": "http://jsonschema.net",
                "required": true,
                "properties": {
                    "carte": {
                        "type": "string",
                        "required": false,
                        "minLength": 14,
                        "maxLength": 14
                    },
                    "naissance": {
                        "type": "string",
                        "required": false,
                        "format": "date"
                    },
                    "login": {
                      "type": "string",
                      "required": false
                    },
                    "role": {
                      "type": "role",
                      "required": false
                    }
509e1d6e   Geoffrey PREUD'HOMME   API: Login
91
                  }
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
92
93
94
95
96
97
                }
      responses:
        201:
          description: Personne ajoutée avec succès
          body:
            application/json:
90a48e21   Geoffrey PREUD'HOMME   Personnes
98
    /{idPersonne}:
790d94b4   Geoffrey PREUD'HOMME   Base de données, ...
99
100
      uriParameters:
        idPersonne:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
101
          type: integer
790d94b4   Geoffrey PREUD'HOMME   Base de données, ...
102
103
104
          required: true
          description: ID de la personne
          minimum: 0
90a48e21   Geoffrey PREUD'HOMME   Personnes
105
      get:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
106
        description: Obtenir les infos sur une personne. Nécessite PERSONNE_GET
90a48e21   Geoffrey PREUD'HOMME   Personnes
107
108
109
110
111
        responses:
          200:
            description: Utilisateur récupéré
            body:
              application/json:
90a48e21   Geoffrey PREUD'HOMME   Personnes
112
113
114
          404:
            description: Utilisateur non trouvé
      put:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
115
        description: Modifer les infos d'une personne. Nécessite PERSONNE_EDIT
6ae819f3   badetitou   Go to JSON
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
        body:
            application/json:
              schema: |
                  {
                    "type": "object",
                    "$schema": "http://json-schema.org/draft-03/schema",
                    "id": "http://jsonschema.net",
                    "required": true,
                    "properties": {
                        "carte": {
                            "type": "string",
                            "required": false,
                            "minLength": 14,
                            "maxLength": 14
                        },
                        "naissance": {
e0956603   badetitou   Raml with java.ut...
132
133
134
                            "type": "string",
                            "required": false,
                            "format": "date"
6ae819f3   badetitou   Go to JSON
135
136
137
138
139
140
141
142
143
144
145
                        },
                        "login": {
                          "type": "string",
                          "required": false
                        },
                        "role": {
                          "type": "role",
                          "required": false
                      }
                    }
                  }
90a48e21   Geoffrey PREUD'HOMME   Personnes
146
147
148
        responses:
          202:
            description: Utilisateur modifié
90a48e21   Geoffrey PREUD'HOMME   Personnes
149
150
151
          404:
            description: Utilisateur non trouvé
      delete:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
152
        description: Supprime une personne. Nécessite PERSONNE_REMOVE
90a48e21   Geoffrey PREUD'HOMME   Personnes
153
154
155
156
157
        responses:
          204:
            description: Utilisateur supprimé
          404:
            description: Utilisateur non trouvé
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
158
159
160
      /virer:
        post:
          description: Permet de créditer ou débiter un compte
90a48e21   Geoffrey PREUD'HOMME   Personnes
161
162
          body:
            application/json:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
163
              schema: |
90a48e21   Geoffrey PREUD'HOMME   Personnes
164
                {
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
165
166
167
168
169
170
171
172
173
174
                  "type": "object",
                  "$schema": "http://json-schema.org/draft-03/schema",
                  "id": "http://jsonschema.net",
                  "required": true,
                  "properties": {
                    "prix": {
                      "type": "number",
                      "required": true
                    }
                  }
90a48e21   Geoffrey PREUD'HOMME   Personnes
175
                }
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
176
177
178
179
180
181
          responses:
            201:
              description: La personne a bien été virée
            406:
              description: La personne n'a pas assez de fonds pour être débitée
  
377081e3   Geoffrey PREUD'HOMME   Rôles et permissions
182
183
  /role:
    get:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
184
      description: Liste les rôles. Nécessite ROLE_LIST
e9bf0f84   badetitou   Evenement
185
      responses:
377081e3   Geoffrey PREUD'HOMME   Rôles et permissions
186
        200:
e9bf0f84   badetitou   Evenement
187
          body:
377081e3   Geoffrey PREUD'HOMME   Rôles et permissions
188
189
190
191
192
193
194
195
196
197
198
            application/json:
              example: |
                [
                  {
                    "nom": "etudiant",
                    "permissions": []
                  },
                  {
                    "nom": "bde",
                      "permissions": [
                      {
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
199
                        "nom": "EVNMT_ADD"
377081e3   Geoffrey PREUD'HOMME   Rôles et permissions
200
201
                      },
                      {
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
202
                        "nom": "EVNMT_REMOVE"
377081e3   Geoffrey PREUD'HOMME   Rôles et permissions
203
204
205
206
207
                      }
                    ]
                  }
                ]
    post:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
208
      description: Ajoute un nouveau rôle. Nécessite ROLE_ADD
6ae819f3   badetitou   Go to JSON
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
      body:
        application/json:
          schema: |
                {
                "type": "object",
                "$schema": "http://json-schema.org/draft-03/schema",
                "id": "http://jsonschema.net",
                "required": true,
                "properties": {
                    "nom": {
                        "type": "string",
                        "required": true,
                        "minLength": 3
                    }
                }
                }
e9bf0f84   badetitou   Evenement
225
      responses:
377081e3   Geoffrey PREUD'HOMME   Rôles et permissions
226
227
228
229
230
        201:
          description: Rôle créé avec succès
        409:
          description: Un rôle avec le même nom existe déjà
    /{nomRole}:
6ae819f3   badetitou   Go to JSON
231
232
      uriParameters:
        nomRole:
474776a8   Geoffrey PREUD'HOMME   Implémentation JS...
233
          type: string
6ae819f3   badetitou   Go to JSON
234
          required: true
474776a8   Geoffrey PREUD'HOMME   Implémentation JS...
235
          description: Nom du role
377081e3   Geoffrey PREUD'HOMME   Rôles et permissions
236
      delete:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
237
        description: Supprime un rôle. Nécessite ROLE_REMOVE
e9bf0f84   badetitou   Evenement
238
        responses:
377081e3   Geoffrey PREUD'HOMME   Rôles et permissions
239
240
241
242
243
          204:
            description: Rôle supprimé
          404:
            description: Rôle inconnu
      post:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
244
        description: Ajoute une permission à un rôle. Nécessite ROLE_PERMISSION_ADD
6ae819f3   badetitou   Go to JSON
245
246
247
248
249
250
251
252
253
254
255
        body:
          application/json:
            schema: |
              {
              "type": "object",
              "$schema": "http://json-schema.org/draft-03/schema",
              "id": "http://jsonschema.net",
              "required": true,
              "properties": {
                  "nom": {
                      "type": "string",
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
256
257
                      "required": true,
                      "minLength": 3
6ae819f3   badetitou   Go to JSON
258
259
260
                  }
              }
              }
e9bf0f84   badetitou   Evenement
261
        responses:
377081e3   Geoffrey PREUD'HOMME   Rôles et permissions
262
263
264
265
266
          201:
            description: Permission ajouté avec succès
          404:
            description: Permission ou rôle inconnu
      /{nomPermission}:
6ae819f3   badetitou   Go to JSON
267
268
269
270
        uriParameters:
          nomPermission:
            type: string
            required: true
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
271
            description: Nom de la permission
377081e3   Geoffrey PREUD'HOMME   Rôles et permissions
272
        delete:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
273
          description: Enlève la permission du rôle. Nécessite ROLE_PERMISSION_REMOVE
e9bf0f84   badetitou   Evenement
274
          responses:
377081e3   Geoffrey PREUD'HOMME   Rôles et permissions
275
276
277
278
279
280
            204:
              description: Permission enlevée avec succès
            404:
              description: Permission ou rôle inconnu
    /permission:
      get:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
281
        description: Liste les permissions. Nécessite ROLE_LIST
377081e3   Geoffrey PREUD'HOMME   Rôles et permissions
282
283
284
285
286
287
288
        responses:
          200:
            body:
              application/json:
                example: |
                  [
                    {
3b818f18   Geoffrey PREUD'HOMME   Ajout des permiss...
289
                      "nom": "CREER_EVNMT"
377081e3   Geoffrey PREUD'HOMME   Rôles et permissions
290
291
                    },
                    {
3b818f18   Geoffrey PREUD'HOMME   Ajout des permiss...
292
                      "nom": "SUPPRIMER_EVNMT"
377081e3   Geoffrey PREUD'HOMME   Rôles et permissions
293
294
                    }
                  ]
ff2fc742   badetitou   untab
295
296
  /evenement:
    get:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
297
      description: Obtenir la liste de tout les evenements. Nécessite EVNMT_LIST
ff2fc742   badetitou   untab
298
299
300
301
302
303
304
305
      responses:
        200:
          body:
            application/json:
              example: |
                [
                  {
                    "id": 1,
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
306
                    "nom": "WEC",
ff2fc742   badetitou   untab
307
308
309
310
311
                    "prix": 4,
                    "date": "2001-09-11"
                  },
                  {
                    "id": 2,
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
312
                    "nom": "MidWork",
ff2fc742   badetitou   untab
313
314
315
316
317
                    "prix": 5,
                    "date": "2001-09-11"
                  }
                ]
    post:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
318
      description: Permet de creer un nouvel evenement. Nécessite EVNMT_ADD
6ae819f3   badetitou   Go to JSON
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
      body:
        application/json:
          schema: |
              {
              "type": "object",
              "$schema": "http://json-schema.org/draft-03/schema",
              "id": "http://jsonschema.net",
              "required": true,
              "properties": {
                  "nom": {
                      "type": "string",
                      "required": true
                  },
                  "prix": {
                      "type": "number",
                      "required": true
                  },
                  "date": {
e0956603   badetitou   Raml with java.ut...
337
338
339
                      "type": "string",
                      "required": true,
                      "format": "date"
6ae819f3   badetitou   Go to JSON
340
341
342
                  }
              }
              }
ff2fc742   badetitou   untab
343
344
      responses:
        201:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
345
346
          description: L'évènement a bien été créé
    /{idEvenement}:
6ae819f3   badetitou   Go to JSON
347
348
349
350
      uriParameters:
          evenementId:
            type: integer
            required: true
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
351
            description: ID de l'evenement
6ae819f3   badetitou   Go to JSON
352
            minimum: 0
ff2fc742   badetitou   untab
353
      put:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
354
        description: Permet de modifier un évènement existant. Nécessite EVNMT_EDIT
6ae819f3   badetitou   Go to JSON
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
        body:
          application/json:
            schema: |
                {
                "type": "object",
                "$schema": "http://json-schema.org/draft-03/schema",
                "id": "http://jsonschema.net",
                "required": true,
                "properties": {
                    "nom": {
                        "type": "string",
                        "required": false
                    },
                    "prix": {
                        "type": "number",
                        "required": false
                    },
                    "date": {
e0956603   badetitou   Raml with java.ut...
373
374
375
                        "type": "string",
                        "required": false,
                        "format": "date"
6ae819f3   badetitou   Go to JSON
376
                    }
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
377
                  }
6ae819f3   badetitou   Go to JSON
378
                }
ff2fc742   badetitou   untab
379
380
        responses:
          202:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
381
            description: Évènement modifié
ff2fc742   badetitou   untab
382
383
384
          404:
            description: L'evenement n'existe pas
      get:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
385
        description: Affiche l'évènement. Nécessite EVNMT_GET
ff2fc742   badetitou   untab
386
387
388
389
390
391
392
393
        responses:
          200:
            body:
              application/json:
                example: |
                  [
                     {
                      "id": 1,
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
394
                      "nom": "WEC",
ff2fc742   badetitou   untab
395
396
397
398
399
400
401
                      "prix": 4,
                      "date": "2001-09-11"
                    }
                  ]
          404:
            description: Evenement non existant
      delete:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
402
        description: Permet de supprimer l'evenement {evenementId}. Nécessite EVNMT_REMOVE
ff2fc742   badetitou   untab
403
404
405
        responses:
          200:
            description: L'evenement a été bien supprimé
6ae819f3   badetitou   Go to JSON
406
407
      /participe:
        post:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
408
          description: Enregistre la participation de quelqu'un à un évènement
6ae819f3   badetitou   Go to JSON
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
          body:
            application/json:
              schema: |
                  {
                  "type": "object",
                  "$schema": "http://json-schema.org/draft-03/schema",
                  "id": "http://jsonschema.net",
                  "required": true,
                  "properties": {
                      "id": {
                          "type": "integer",
                          "required": true
                      }
                  }
                  }
          responses:
            201:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
426
              description: La participation a bien été enregistrée
6ae819f3   badetitou   Go to JSON
427
            402:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
              description: La personne n'a pas payé pour participer à l'évènement
      /reserve:
        post:
          description: Payer pour un évènement
          body:
              application/json:
                schema: |
                  {
                  "type": "object",
                  "$schema": "http://json-schema.org/draft-03/schema",
                  "id": "http://jsonschema.net",
                  "required": true,
                  "properties": {
                    "participant": {
                      "type": "Personne",
                      "required": true
                    },
                    "id": {
                      "type": "Evenement",
                      "required": true
                    }
                  }
                  }
          responses:
            201:
              description: L'evenement a bien été resérvé
0e498f62   Geoffrey PREUD'HOMME   Consomation → Con...
454
  /consommation:
ff2fc742   badetitou   untab
455
    get:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
456
      description: Obtenir la liste de toutes les consommations. Nécessite CONSO_LIST
ff2fc742   badetitou   untab
457
458
459
460
461
462
463
464
      responses:
        200:
          body:
            application/json:
              example: |
                [
                  {
                    "id": 1,
6ae819f3   badetitou   Go to JSON
465
                    "nom": "juis de fruit",
e8c4d43f   Geoffrey PREUD'HOMME   Encore plus de sé...
466
                    "prix": 4
ff2fc742   badetitou   untab
467
468
469
                  },
                  {
                    "id": 2,
6ae819f3   badetitou   Go to JSON
470
                    "nom": "juis de fruit flambe",
e8c4d43f   Geoffrey PREUD'HOMME   Encore plus de sé...
471
                    "prix": 5
ff2fc742   badetitou   untab
472
473
474
                  }
                ]
    post:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
475
      description: Permet de creer une nouvelle consommation. Nécessite CONSO_ADD
6ae819f3   badetitou   Go to JSON
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
      body:
        application/json:
          schema: |
            {
            "type": "object",
            "$schema": "http://json-schema.org/draft-03/schema",
            "id": "http://jsonschema.net",
            "required": true,
            "properties": {
                "nom": {
                    "type": "string",
                    "required": true
                },
                "prix": {
                    "type": "number",
                    "required": true
                }
            }
            }
ff2fc742   badetitou   untab
495
496
      responses:
        201:
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
497
    /{idConsommation}:
6ae819f3   badetitou   Go to JSON
498
499
500
501
502
503
      uriParameters:
        consommationId:
          type: integer
          required: true
          description: id de la consommation
          minimum: 0
ff2fc742   badetitou   untab
504
      put:
3b818f18   Geoffrey PREUD'HOMME   Ajout des permiss...
505
        description: Permet de modifier une consommation. Nécessite CONSO_ADMIN
6ae819f3   badetitou   Go to JSON
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
        body:
            application/json:
              schema: |
                  {
                  "type": "object",
                  "$schema": "http://json-schema.org/draft-03/schema",
                  "id": "http://jsonschema.net",
                  "required": true,
                  "properties": {
                      "nom": {
                          "type": "string",
                          "required": false
                      },
                      "prix": {
                          "type": "number",
                          "required": false
                      }
                  }
                  }
ff2fc742   badetitou   untab
525
526
527
528
529
530
        responses:
          202:
            description: Modification pris en compte
          404:
            description: L'evenement n'existe pas
      get:
0e498f62   Geoffrey PREUD'HOMME   Consomation → Con...
531
        description: Obtenir la consommation {consommationId}. Nécessite CONSO_ADMIN ou CONSO_ACHETER ou CONSO_REMBOURSER
ff2fc742   badetitou   untab
532
533
534
535
536
537
538
539
540
541
542
543
544
545
        responses:
          200:
            body:
              application/json:
                example: |
                  [
                     {
                      "id": 1,
                      "nomEvenement": "patate",
                      "prix": 4,
                      "date": "2001-09-11"
                    }
                  ]
          404:
0e498f62   Geoffrey PREUD'HOMME   Consomation → Con...
546
            description: consommation non existante
ff2fc742   badetitou   untab
547
      delete:
0e498f62   Geoffrey PREUD'HOMME   Consomation → Con...
548
        description: Permet de supprimer la consommation {consommationId}. Nécessite CONSO_ADMIN
ff2fc742   badetitou   untab
549
550
        responses:
          200:
0e498f62   Geoffrey PREUD'HOMME   Consomation → Con...
551
            description: La consommation a été bien supprime
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
      /achete:
        post:
          description: Achat d'une consomation (id) par un participant à un acteur
          body:
            application/json:
              schema: |
                {
                  "type": "object",
                  "$schema": "http://json-schema.org/draft-03/schema",
                  "id": "http://jsonschema.net",
                  "required": true,
                  "properties": {
                    "participant": {
                      "type": "Personne",
                      "required": true
                    }
                  }
                }
          responses:
            201:
              description: La consommation a été bien payée
7fa0cd71   badetitou   Les Transactions
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
  
  /transaction:
    get:
      description: Permet de recuperer la liste des transaction
      responses:
        200:
          description: On recupere la liste des transactions
          body:
            application/json:
              example: |
                [
                  {
                    "participant": 1,
                    "acteur": 18,
                    "idTransaction": 42,
                    "type": true,
                    "date": "2003-12-01",
                    "prix": 25.23
                  },
                  {
                    "participant": 5,
                    "acteur": 1,
                    "idTransaction": 43,
                    "type": true,
                    "date": "2003-12-01",
                    "prix": -25.23
                  }
                ]
0fd5cbb2   Geoffrey PREUD'HOMME   Changements API &...
601
602
603
604
605
606
607
    delete:
      description: Annuler une transaction
      responses:
        405:
          description: Non implémenté
  
  
6ae819f3   badetitou   Go to JSON
608
609
610
611
612
613
614
    /{idPersonne}:
      uriParameters:
        idPersonne:
          type: integer
          required: true
          description: id de la personne dont on veut regarder les transactions
          minimum: 0
7fa0cd71   badetitou   Les Transactions
615
616
617
618
619
620
621
622
623
624
625
626
      get:
        description: Permet de recuperer la liste des transaction d'une personne
        responses:
          200:
            description: On recupere la liste des transactions
            body:
              application/json:
                example: |
                  [
                    {
                      "participant": 1,
                      "acteur": 18,
1ae1d9d5   badetitou   Ajout de transact...
627
                      "id": 42,
7fa0cd71   badetitou   Les Transactions
628
629
630
631
632
633
                      "type": true,
                      "date": "2003-12-01",
                      "prix": 25.23
                    },
                    {
                      "participant": 1,
6ae819f3   badetitou   Go to JSON
634
                      "acteur": 12,
1ae1d9d5   badetitou   Ajout de transact...
635
                      "id": 43,
7fa0cd71   badetitou   Les Transactions
636
637
638
639
640
641
                      "type": true,
                      "date": "2003-12-01",
                      "prix": -25.23
                    }
                  ]
    /acteur/{idPersonne}:
6ae819f3   badetitou   Go to JSON
642
643
644
645
646
647
      uriParameters:
        idPersonne:
          type: integer
          required: true
          description: id de la personne dont on veut regarder les transactions
          minimum: 0
7fa0cd71   badetitou   Les Transactions
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
      get:
        description: Permet de recuperer la liste des transaction d'une personne
        responses:
          200:
            description: On recupere la liste des transactions
            body:
              application/json:
                example: |
                  [
                    {
                      "participant": 1,
                      "acteur": 18,
                      "idTransaction": 42,
                      "type": true,
                      "date": "2003-12-01",
                      "prix": 25.23
                    },
                    {
                      "participant": 1,
                      "acteur": 12,
                      "idTransaction": 43,
                      "type": true,
                      "date": "2003-12-01",
                      "prix": -25.23
                    }
6ae819f3   badetitou   Go to JSON
673
                  ]