-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger_simplifie.yaml
56 lines (54 loc) · 1.34 KB
/
swagger_simplifie.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
openapi: 3.0.0
info:
title: Ma super messagerie
version: "1.0"
paths:
/messages:
get:
summary: Retourne la liste des messages
responses:
'200':
description: Liste de messages
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/message'
post:
summary: Envoie un nouveau message
requestBody:
$ref: '#/components/requestBodies/messageBody'
responses:
'200':
description: OK
components:
schemas:
message:
type: object
properties:
id:
type: integer
description: Identifiant (unique) du message
emetteur:
type: string
description: Pseudo de l'emetteur du message
contenu:
type: string
description: Contenu du message
requestBodies:
messageBody:
content:
application/json:
schema:
type: object
properties:
emetteur:
type: string
description: Pseudo de l'emetteur du message
contenu:
type: string
description: Contenu du message
example:
emetteur: quentin
contenu: Hello world