diff --git a/Makefile b/Makefile index 13515e4..f579017 100644 --- a/Makefile +++ b/Makefile @@ -114,13 +114,13 @@ set-ratelimit: guard-APIM_ENV < specification/x-nhsd-apim/ratelimit-template.yaml > specification/x-nhsd-apim/ratelimit.yaml update-spec-template: guard-APIM_ENV -ifeq ($(APIM_ENV), $(filter $(APIM_ENV), sandbox internal-dev test int ref preprod prod )) +ifeq ($(APIM_ENV), $(filter $(APIM_ENV), sandbox internal-dev test int ref preprod prod dev )) @ $(MAKE) set-target APIM_ENV=$$APIM_ENV @ $(MAKE) set-access APIM_ENV=$$APIM_ENV @ $(MAKE) set-security APIM_ENV=$$APIM_ENV @ $(MAKE) set-ratelimit APIM_ENV=$$APIM_ENV else - @ echo ERROR: $$APIM_ENV is not a valid environment. Please use one of [sandbox, internal-dev, int, ref, preprod, prod] + @ echo ERROR: $$APIM_ENV is not a valid environment. Please use one of [dev, sandbox, internal-dev, test, int, ref, preprod, prod] @ exit 1; endif diff --git a/specification/components/security/security-internal-dev.yaml b/specification/components/security/security-internal-dev.yaml new file mode 100644 index 0000000..a427260 --- /dev/null +++ b/specification/components/security/security-internal-dev.yaml @@ -0,0 +1,4 @@ +nhs-login-p9: + $ref: https://proxygen.prod.api.platform.nhs.uk/components/securitySchemes/nhs-login-p9 +app-level3: + $ref: https://proxygen.prod.api.platform.nhs.uk/components/securitySchemes/app-level3 diff --git a/specification/x-nhsd-apim/access-internal-dev.yaml b/specification/x-nhsd-apim/access-internal-dev.yaml new file mode 100644 index 0000000..a5d92a5 --- /dev/null +++ b/specification/x-nhsd-apim/access-internal-dev.yaml @@ -0,0 +1,6 @@ +- title: Eligibility Signposting API (Dev Environment) + grants: + nhs-login-p9: [] +- title: Eligibility Signposting API (Dev Environment) app Level 3 Access + grants: + app-level3: [] diff --git a/specification/x-nhsd-apim/access-preprod.yaml b/specification/x-nhsd-apim/access-preprod.yaml index 3a049c2..6c33f5a 100644 --- a/specification/x-nhsd-apim/access-preprod.yaml +++ b/specification/x-nhsd-apim/access-preprod.yaml @@ -1,4 +1,6 @@ - title: Eligibility Signposting API (Pre Production Environment) grants: nhs-login-p9: [] +- title: Eligibility Signposting API (Pre Production Environment) app Level 3 Access + grants: app-level3: [] diff --git a/specification/x-nhsd-apim/ratelimit-dev.yaml b/specification/x-nhsd-apim/ratelimit-internal-dev.yaml similarity index 100% rename from specification/x-nhsd-apim/ratelimit-dev.yaml rename to specification/x-nhsd-apim/ratelimit-internal-dev.yaml diff --git a/specification/x-nhsd-apim/target-dev.yaml b/specification/x-nhsd-apim/target-internal-dev.yaml similarity index 100% rename from specification/x-nhsd-apim/target-dev.yaml rename to specification/x-nhsd-apim/target-internal-dev.yaml diff --git a/specification/x-nhsd-apim/target-preprod.yaml b/specification/x-nhsd-apim/target-preprod.yaml index cabb590..4c441ba 100644 --- a/specification/x-nhsd-apim/target-preprod.yaml +++ b/specification/x-nhsd-apim/target-preprod.yaml @@ -1,5 +1,5 @@ type: external -url: "preprod.eligibility-signposting-api.nhs.uk" +url: "https://preprod.eligibility-signposting-api.nhs.uk" healthcheck: /patient-check/_status security: type: mtls diff --git a/specification/x-nhsd-apim/target-prod.yaml b/specification/x-nhsd-apim/target-prod.yaml index a889c96..a779e58 100644 --- a/specification/x-nhsd-apim/target-prod.yaml +++ b/specification/x-nhsd-apim/target-prod.yaml @@ -1,5 +1,5 @@ type: external -url: "prod.eligibility-signposting-api.national.nhs.uk" +url: "https://prod.eligibility-signposting-api.national.nhs.uk" healthcheck: /patient-check/_status security: type: mtls diff --git a/specification/x-nhsd-apim/target-test.yaml b/specification/x-nhsd-apim/target-test.yaml index baed574..2451246 100644 --- a/specification/x-nhsd-apim/target-test.yaml +++ b/specification/x-nhsd-apim/target-test.yaml @@ -1,5 +1,5 @@ type: external -url: "test.eligibility-signposting-api.nhs.uk" +url: "https://test.eligibility-signposting-api.nhs.uk" healthcheck: /patient-check/_status security: type: mtls