From 9c9a2f9066426e1f9e252af494075f7b887bb2d0 Mon Sep 17 00:00:00 2001 From: Pier-Paolo Mammi Date: Fri, 26 Jun 2026 13:23:36 +0200 Subject: [PATCH] IDEM WS: move API key to environments --- collections/IDEM WebServices/.env.template | 4 +++- collections/IDEM WebServices/environments/IDEM - Prod.yml | 2 ++ collections/IDEM WebServices/environments/IDEM - Test.yml | 2 ++ collections/IDEM WebServices/opencollection.yml | 2 +- 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/collections/IDEM WebServices/.env.template b/collections/IDEM WebServices/.env.template index 8474eef..5c255a0 100644 --- a/collections/IDEM WebServices/.env.template +++ b/collections/IDEM WebServices/.env.template @@ -1,2 +1,4 @@ IdemApiPassword_Test= -IdemApiPassword_Prod= \ No newline at end of file +IdemApiPassword_Prod= +IdemApiKey_Prod= +IdemApiKey_Test= \ No newline at end of file diff --git a/collections/IDEM WebServices/environments/IDEM - Prod.yml b/collections/IDEM WebServices/environments/IDEM - Prod.yml index 743c1dd..eaa8ab0 100644 --- a/collections/IDEM WebServices/environments/IDEM - Prod.yml +++ b/collections/IDEM WebServices/environments/IDEM - Prod.yml @@ -7,3 +7,5 @@ variables: value: elix_ws - name: IdemApiPassword value: "{{process.env.IdemApiPassword_Prod}}" + - name: IdemApiKey + value: "{{process.env.IdemApiKey_Prod}}" diff --git a/collections/IDEM WebServices/environments/IDEM - Test.yml b/collections/IDEM WebServices/environments/IDEM - Test.yml index 9d198f9..a9776cb 100644 --- a/collections/IDEM WebServices/environments/IDEM - Test.yml +++ b/collections/IDEM WebServices/environments/IDEM - Test.yml @@ -7,3 +7,5 @@ variables: value: elix_ws - name: IdemApiPassword value: "{{process.env.IdemApiPassword_Test}}" + - name: IdemApiKey + value: "{{process.env.IdemApiKey_Test}}" diff --git a/collections/IDEM WebServices/opencollection.yml b/collections/IDEM WebServices/opencollection.yml index f70d03a..008de03 100644 --- a/collections/IDEM WebServices/opencollection.yml +++ b/collections/IDEM WebServices/opencollection.yml @@ -17,7 +17,7 @@ config: request: headers: - name: X-API-Key - value: WkBxJDVwJjJUajM3ZDVBV1NOZkF5cmY3eVVgZDNBZHVibXh+N0tMekBAbVNGV2ZnJTRuTiV0bWk1WUNzeHpEdg== + value: "{{IdemApiKey}}" auth: type: basic username: "{{IdemApiUsername}}"