Mise à jour de urls de participationformation et ajout d'une url de serveur

master
Yanaël GRETTE 4 years ago
parent 375812f17f
commit 642e7105df
  1. 8
      openapi.yaml
  2. 28
      paths/participationformation/evaluation.yaml
  3. 27
      paths/participationformation/evaluer.yaml

@ -10,6 +10,8 @@ info:
servers:
- url: http://localhost:3000/api
description: json-server pour les premiers tests
- url: https://localhost:44393/api
description: url pour le serveur local en cours de développement
paths:
#Collaborateur
@ -156,11 +158,9 @@ paths:
#ParticipationFormation et évaluation
/participations/{idCollaborateur}:
/participationsformation/{idCollaborateur}:
$ref: ./paths/participationformation/participationsCollaborateur.yaml
/participations/{idParticipationFormation}/evaluer:
$ref: ./paths/participationformation/evaluer.yaml
/participations/{idParticipationFormation}/evaluation:
/participationsformation/{idParticipationFormation}/evaluation:
$ref: ./paths/participationformation/evaluation.yaml
components:

@ -20,3 +20,31 @@ get:
'500':
$ref: ../../responses/erreur/internalServerError.yaml
put:
tags:
- participationsFormations
operationId: evaluerFormation
description: Evaluer une formation
parameters:
- $ref: ../../parameters/path/idParticipationFormation.yaml
requestBody:
$ref: ../../requestbodies/evaluation.yaml
responses:
'200':
$ref: ../../responses/formation/formationEvaluee.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

@ -1,27 +0,0 @@
put:
tags:
- participationsFormations
operationId: evaluerFormation
description: Evaluer une formation
parameters:
- $ref: ../../parameters/path/idParticipationFormation.yaml
requestBody:
$ref: ../../requestbodies/evaluation.yaml
responses:
'200':
$ref: ../../responses/formation/formationEvaluee.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
Loading…
Cancel
Save