|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- notes
|
|
|
|
operationId: getNoteById
|
|
|
|
description: Récupérer une note par son id.
|
|
|
|
parameters:
|
|
|
|
- $ref: ../../parameters/path/idNote.yaml
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
$ref: ../../responses/note/getNote.yaml
|
|
|
|
|
|
|
|
'401':
|
|
|
|
$ref: ../../responses/erreur/unauthorized.yaml
|
|
|
|
|
|
|
|
'403':
|
|
|
|
$ref: ../../responses/erreur/forbidden.yaml
|
|
|
|
|
|
|
|
'404':
|
|
|
|
$ref: ../../responses/erreur/notFound.yaml
|
|
|
|
|
|
|
|
'500':
|
|
|
|
$ref: ../../responses/erreur/internalServerError.yaml
|
|
|
|
put:
|
|
|
|
tags:
|
|
|
|
- notes
|
|
|
|
operationId: updateNote
|
|
|
|
description: Modifier une note.
|
|
|
|
parameters:
|
|
|
|
- $ref: ../../parameters/path/idNote.yaml
|
|
|
|
requestBody:
|
|
|
|
$ref: ../../requestbodies/note.yaml
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
$ref: ../../responses/note/updateNote.yaml
|
|
|
|
|
|
|
|
'401':
|
|
|
|
$ref: ../../responses/erreur/unauthorized.yaml
|
|
|
|
|
|
|
|
'403':
|
|
|
|
$ref: ../../responses/erreur/forbidden.yaml
|
|
|
|
|
|
|
|
'404':
|
|
|
|
$ref: ../../responses/erreur/notFound.yaml
|
|
|
|
|
|
|
|
'415':
|
|
|
|
$ref: ../../responses/erreur/unsupportedMediaType.yaml
|
|
|
|
|
|
|
|
'500':
|
|
|
|
$ref: ../../responses/erreur/internalServerError.yaml
|
|
|
|
delete:
|
|
|
|
tags:
|
|
|
|
- notes
|
|
|
|
operationId: deleteNote
|
|
|
|
description: Supprimer une note.
|
|
|
|
parameters:
|
|
|
|
- $ref: ../../parameters/path/idNote.yaml
|
|
|
|
responses:
|
|
|
|
'204':
|
|
|
|
$ref: ../../responses/note/noteSupprimee.yaml
|
|
|
|
|
|
|
|
'401':
|
|
|
|
$ref: ../../responses/erreur/unauthorized.yaml
|
|
|
|
|
|
|
|
'403':
|
|
|
|
$ref: ../../responses/erreur/forbidden.yaml
|
|
|
|
|
|
|
|
'404':
|
|
|
|
$ref: ../../responses/erreur/notFound.yaml
|
|
|
|
|
|
|
|
'500':
|
|
|
|
$ref: ../../responses/erreur/internalServerError.yaml
|