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

@ -18,5 +18,33 @@ get:
'404': '404':
$ref: ../../responses/erreur/notFound.yaml $ref: ../../responses/erreur/notFound.yaml
'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': '500':
$ref: ../../responses/erreur/internalServerError.yaml $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