From 56539b45564726b1e7fdd7c2b9ab29e86fc88f6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yana=C3=ABl=20GRETTE?= Date: Wed, 3 Feb 2021 10:49:37 +0100 Subject: [PATCH] changements mineurs --- src/app/home/home.component.ts | 2 +- .../api-swagger/api/collaborateurs.service.ts | 20 +++++++++---------- .../api/demandesDelegation.service.ts | 2 +- .../api-swagger/api/demandesEPI.service.ts | 2 +- .../api/demandesformation.service.ts | 2 +- .../api-swagger/api/engagements.service.ts | 2 +- src/app/shared/api-swagger/api/ep.service.ts | 2 +- .../api-swagger/api/formations.service.ts | 2 +- .../shared/api-swagger/api/notes.service.ts | 2 +- .../api/participationsFormations.service.ts | 2 +- .../api-swagger/api/referentsEP.service.ts | 2 +- src/environments/environment.ts | 2 +- 12 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/app/home/home.component.ts b/src/app/home/home.component.ts index 8f46a16..08f6446 100644 --- a/src/app/home/home.component.ts +++ b/src/app/home/home.component.ts @@ -23,7 +23,7 @@ export class HomeComponent implements OnInit { */ userRole : string; - constructor(private authService: AuthService) { + constructor(private authService: AuthService) { this.userRole = authService.firstRole; } diff --git a/src/app/shared/api-swagger/api/collaborateurs.service.ts b/src/app/shared/api-swagger/api/collaborateurs.service.ts index a10f9a9..6446a53 100644 --- a/src/app/shared/api-swagger/api/collaborateurs.service.ts +++ b/src/app/shared/api-swagger/api/collaborateurs.service.ts @@ -3,7 +3,7 @@ * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * * OpenAPI spec version: 1.3.6 - * + * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git @@ -27,7 +27,7 @@ import { Configuration } from '../configurat @Injectable() export class CollaborateursService { - protected basePath = 'http://localhost:3000/api'; + protected basePath = 'https://localhost:44393/api'; public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); @@ -57,7 +57,7 @@ export class CollaborateursService { /** - * + * * Récupérer un collaborateur par son id. * @param idCollaborateur Id du collaborateur * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. @@ -105,7 +105,7 @@ export class CollaborateursService { } /** - * + * * Récupérer un collaborateur par son mail. * @param mail Mail de l'utilisateur connecté (mail obtenu via le token Keycloak) * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. @@ -142,7 +142,7 @@ export class CollaborateursService { const consumes: string[] = [ ]; - return this.httpClient.request('get',`${this.basePath}/collaborateurs/${encodeURIComponent(String(mail))}`, + return this.httpClient.request('get',`${this.basePath}/collaborateurs/${encodeURIComponent(String(mail))}/mail`, { withCredentials: this.configuration.withCredentials, headers: headers, @@ -153,7 +153,7 @@ export class CollaborateursService { } /** - * + * * Récupérer une liste de collaborateurs. * @param roles Liste des rôles auquels appartiennent les collaborateurs (e.g [”CP”, ”Commerciaux”,”RA”]) * @param idBUs liste des ids des BU auxquelles les données sont rattachées @@ -248,7 +248,7 @@ export class CollaborateursService { } /** - * + * * Récupérer la liste des collaborateurs d’un référent. * @param idReferent Id d'un référent * @param asc Indique si les données sont récupérées dans l'ordre croissant ou non @@ -324,7 +324,7 @@ export class CollaborateursService { } /** - * + * * Récupérer le nombre total de collaborateurs d’un référent. * @param idReferent Id d'un référent * @param asc Indique si les données sont récupérées dans l'ordre croissant ou non @@ -400,7 +400,7 @@ export class CollaborateursService { } /** - * + * * Récupérer le nombre total de collaborateurs. * @param roles Liste des rôles auquels appartiennent les collaborateurs (e.g [”CP”, ”Commerciaux”,”RA”]) * @param idBUs liste des ids des BU auxquelles les données sont rattachées @@ -495,7 +495,7 @@ export class CollaborateursService { } /** - * + * * Récupérer la liste des référents des précédents EP du collaborateur. * @param idCollaborateur Id du collaborateur * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. diff --git a/src/app/shared/api-swagger/api/demandesDelegation.service.ts b/src/app/shared/api-swagger/api/demandesDelegation.service.ts index c62c2d4..73355bb 100644 --- a/src/app/shared/api-swagger/api/demandesDelegation.service.ts +++ b/src/app/shared/api-swagger/api/demandesDelegation.service.ts @@ -27,7 +27,7 @@ import { Configuration } from '../configurat @Injectable() export class DemandesDelegationService { - protected basePath = 'http://localhost:3000/api'; + protected basePath = 'https://localhost:44393/api'; public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); diff --git a/src/app/shared/api-swagger/api/demandesEPI.service.ts b/src/app/shared/api-swagger/api/demandesEPI.service.ts index f1c96b6..92edb8f 100644 --- a/src/app/shared/api-swagger/api/demandesEPI.service.ts +++ b/src/app/shared/api-swagger/api/demandesEPI.service.ts @@ -28,7 +28,7 @@ import { Configuration } from '../configurat @Injectable() export class DemandesEPIService { - protected basePath = 'http://localhost:3000/api'; + protected basePath = 'https://localhost:44393/api'; public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); diff --git a/src/app/shared/api-swagger/api/demandesformation.service.ts b/src/app/shared/api-swagger/api/demandesformation.service.ts index 62fc2a9..c45f8ef 100644 --- a/src/app/shared/api-swagger/api/demandesformation.service.ts +++ b/src/app/shared/api-swagger/api/demandesformation.service.ts @@ -29,7 +29,7 @@ import { Configuration } from '../configurat @Injectable() export class DemandesFormationService { - protected basePath = 'http://localhost:3000/api'; + protected basePath = 'https://localhost:44393/api'; public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); diff --git a/src/app/shared/api-swagger/api/engagements.service.ts b/src/app/shared/api-swagger/api/engagements.service.ts index cdad4e1..7f1eee1 100644 --- a/src/app/shared/api-swagger/api/engagements.service.ts +++ b/src/app/shared/api-swagger/api/engagements.service.ts @@ -28,7 +28,7 @@ import { Configuration } from '../configurat @Injectable() export class EngagementsService { - protected basePath = 'http://localhost:3000/api'; + protected basePath = 'https://localhost:44393/api'; public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); diff --git a/src/app/shared/api-swagger/api/ep.service.ts b/src/app/shared/api-swagger/api/ep.service.ts index 9578418..75e18bc 100644 --- a/src/app/shared/api-swagger/api/ep.service.ts +++ b/src/app/shared/api-swagger/api/ep.service.ts @@ -29,7 +29,7 @@ import { Configuration } from '../configurat @Injectable() export class EpService { - protected basePath = 'http://localhost:3000/api'; + protected basePath = 'https://localhost:44393/api'; public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); diff --git a/src/app/shared/api-swagger/api/formations.service.ts b/src/app/shared/api-swagger/api/formations.service.ts index 63493b1..7d7e32d 100644 --- a/src/app/shared/api-swagger/api/formations.service.ts +++ b/src/app/shared/api-swagger/api/formations.service.ts @@ -32,7 +32,7 @@ import { Configuration } from '../configurat @Injectable() export class FormationsService { - protected basePath = 'http://localhost:3000/api'; + protected basePath = 'https://localhost:44393/api'; public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); diff --git a/src/app/shared/api-swagger/api/notes.service.ts b/src/app/shared/api-swagger/api/notes.service.ts index 87cdb20..8ddbaf4 100644 --- a/src/app/shared/api-swagger/api/notes.service.ts +++ b/src/app/shared/api-swagger/api/notes.service.ts @@ -28,7 +28,7 @@ import { Configuration } from '../configurat @Injectable() export class NotesService { - protected basePath = 'http://localhost:3000/api'; + protected basePath = 'https://localhost:44393/api'; public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); diff --git a/src/app/shared/api-swagger/api/participationsFormations.service.ts b/src/app/shared/api-swagger/api/participationsFormations.service.ts index 760b280..2a985f4 100644 --- a/src/app/shared/api-swagger/api/participationsFormations.service.ts +++ b/src/app/shared/api-swagger/api/participationsFormations.service.ts @@ -28,7 +28,7 @@ import { Configuration } from '../configurat @Injectable() export class ParticipationsFormationsService { - protected basePath = 'http://localhost:3000/api'; + protected basePath = 'https://localhost:44393/api'; public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); diff --git a/src/app/shared/api-swagger/api/referentsEP.service.ts b/src/app/shared/api-swagger/api/referentsEP.service.ts index 7271270..29554ed 100644 --- a/src/app/shared/api-swagger/api/referentsEP.service.ts +++ b/src/app/shared/api-swagger/api/referentsEP.service.ts @@ -27,7 +27,7 @@ import { Configuration } from '../configurat @Injectable() export class ReferentsEPService { - protected basePath = 'http://localhost:3000/api'; + protected basePath = 'https://localhost:44393/api'; public defaultHeaders = new HttpHeaders(); public configuration = new Configuration(); diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 049986b..9531770 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -19,7 +19,7 @@ const keycloakConfig: AuthConfig = { // and it might not enforce further best practices vital for security // such applications. //dummyClientSecret: 'f27746f4-e603-441e-a256-3ddd5b19ba54', - dummyClientSecret: '82702d7b-e44b-4415-9c80-54774a58e1dc', + dummyClientSecret: '201a3d53-7cd5-4613-bcb6-f2e98c1ba2ec', responseType: 'code', silentRefreshRedirectUri: window.location.origin + '/silent-refresh.html' ,