Skip to content

Commit 348c5cf

Browse files
committed
WIP
1 parent 34f7856 commit 348c5cf

6 files changed

Lines changed: 40 additions & 3 deletions

File tree

Makefile

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,29 @@ retrieve-proxygen-key: # Obtain the 'machine user' credentials from AWS SSM (Dev
5858
aws ssm get-parameter --name /proxygen/private_key_temp --with-decryption | jq ".Parameter.Value" --raw-output \
5959
> ~/.proxygen/eligibility-signposting-api.pem
6060

61-
setup-proxygen-credentials: # Copy Proxygen templated credentials to where it expected them
62-
cd specification && cp -r .proxygen ~
61+
# setup-proxygen-credentials: # Copy Proxygen templated credentials to where it expected them
62+
# cd specification && cp -r .proxygen ~
63+
#
64+
# setup-proxygen-credentials-ptl: # Copy Proxygen templated credentials to where it expected them
65+
# cd specification && cp -r .proxygen/credentials-ptl.yaml ~/.proxygen/credentials.yaml && \
66+
# cp .proxygen/settings-ptl.yaml ~/.proxygen/settings.yaml
67+
# proxygen credentials list
68+
#
69+
# setup-proxygen-credentials-prod: # Copy Proxygen templated credentials to where it expected them
70+
# cd specification && cp -r .proxygen/credentials-prod.yaml ~/.proxygen/credentials.yaml && \
71+
# cp .proxygen/settings-ptl.yaml ~/.proxygen/settings.yaml
72+
# proxygen credentials list
73+
74+
setup-proxygen-credentials:
75+
cd specification && \
76+
cp .proxygen/credentials-$(ENV).yaml ~/.proxygen/credentials.yaml && \
77+
cp .proxygen/settings-$(ENV).yaml ~/.proxygen/settings.yaml
78+
79+
setup-proxygen-credentials-ptl:
80+
$(MAKE) setup-proxygen-credentials ENV=ptl
81+
82+
setup-proxygen-credentials-prod:
83+
$(MAKE) setup-proxygen-credentials ENV=prod
6384

6485
get-spec: # Get the most recent specification live in proxygen
6586
$(MAKE) setup-proxygen-credentials

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ requires-python = ">=3.11"
1010
repository = "https://github.com/NHSDigital/eligibility-signposting-api-specification"
1111
homepage = "https://digital.nhs.uk/developer/api-catalogue"
1212
keywords = ["healthcare", "uk", "nhs", "vaccination", "api"] #TODO add additional keywords
13-
package_mode = false
13+
14+
[tool.poetry]
15+
package-mode = false
1416

1517
[build-system]
1618
requires = ["poetry-core>=2.0.0,<3.0.0"]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
client_id: eligibility-signposting-api-prod-client
2+
#private_key_path: eligibility-signposting-api-prod.pem
3+
private_key_path: eligibility-signposting-api.pem
4+
key_id: eligibility-signposting-api-prod
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
client_id: eligibility-signposting-api-ptl-client
2+
#private_key_path: eligibility-signposting-api-ptl.pem
3+
private_key_path: eligibility-signposting-api.pem
4+
key_id: eligibility-signposting-api-ptl
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
api: eligibility-signposting-api
2+
endpoint_url: https://proxygen.prod.api.platform.nhs.uk
3+
spec_output_format: yaml
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
api: eligibility-signposting-api
2+
endpoint_url: https://proxygen.ptl.api.platform.nhs.uk
3+
spec_output_format: yaml

0 commit comments

Comments
 (0)