-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest_template.yml
106 lines (106 loc) · 3.29 KB
/
manifest_template.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
SERVICE_NAME: validated-relationships-service-api
PRODUCT_DISPLAY_NAME: validated-relationships-service-api
DESCRIPTION: Validated Relationships Service API
APIGEE_ENVIRONMENTS:
- name: internal-dev
display_name: Internal Development
has_mock_auth: true
rate_limit: 300
spike_rate_limit: 600pm # 10 requests per second
approval_type: auto
- name: internal-qa
display_name: Internal QA
has_mock_auth: true
rate_limit: 300
spike_rate_limit: 600pm # 10 requests per second
approval_type: auto
- name: internal-dev-sandbox
display_name: Internal Development Sandbox
portal_visibility: false
rate_limit: 300
spike_rate_limit: 600pm # 10 requests per second
approval_type: auto
- name: internal-qa
display_name: Internal QA
has_mock_auth: true
portal_visibility: false
rate_limit: 300
spike_rate_limit: 600pm # 10 requests per second
approval_type: auto
- name: internal-qa-sandbox
display_name: Internal QA Sandbox
portal_visibility: false
rate_limit: 300
spike_rate_limit: 600pm # 10 requests per second
approval_type: auto
- name: sandbox
display_name: Sandbox
portal_visibility: false
rate_limit: 120
spike_rate_limit: 300pm # 5 requests per second
approval_type: auto
- name: int
display_name: Integration Testing
has_mock_auth: true
rate_limit: 300
spike_rate_limit: 600pm # 10 requests per second
approval_type: auto
- name: prod
display_name: Production
has_mock_auth: false
rate_limit: 300
spike_rate_limit: 600pm # 10 requests per second
approval_type: manual
---
meta:
api:
name: validated-relationships-service-api
guid: dc0575cf-249a-4b08-9ccf-8d87b51501ad
spec_guids:
- 3a12b334-4022-412e-b00e-04409ad56ceb
schema_version: 1.3
apigee:
environments:
{% for ENV in APIGEE_ENVIRONMENTS %}
{% set TITLE = PRODUCT_DISPLAY_NAME + ' (' + ENV.display_name + ' Environment)' %}
{% set NAME = SERVICE_NAME + '-' + ENV.name %}
- name: {{ ENV.name }}
products:
- name: {{ NAME }}
approvalType: {{ ENV.approval_type }}
attributes:
- name: access
value: public
# For a parameterised example of rate limiting per environment,
# see https://github.com/NHSDigital/personal-demographics-service-api/blob/master/manifest_template.yml
- name: ratelimiting
value:
{{ NAME }}:
quota:
enabled: true
limit: {{ ENV.rate_limit }}
interval: 1
timeunit: minute
spikeArrest:
enabled: true
ratelimit: {{ ENV.spike_rate_limit }}
app:
quota:
enabled: false
spikeArrest:
enabled: false
description: {{ DESCRIPTION }}
displayName: {{ TITLE }}
environments: [ {{ ENV.name }} ]
proxies:
- {{ NAME }}
- identity-service-{{ ENV.name }}
{% if ENV.has_mock_auth | default(false) %}
- identity-service-mock-{{ ENV.name }}
{% endif %}
scopes:
- 'urn:nhsd:apim:user-nhs-login:P9:{{ SERVICE_NAME }}'
specs:
- name: {{ NAME }}
path: {{ SERVICE_NAME }}.json
{% endfor %}