-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmanifest_template.yml
More file actions
81 lines (80 loc) · 2.52 KB
/
manifest_template.yml
File metadata and controls
81 lines (80 loc) · 2.52 KB
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
# Manifest template
APIGEE_ENVIRONMENTS:
- display_name: Internal Development
name: internal-dev
- display_name: Internal Development Sandbox
name: internal-dev-sandbox
- display_name: Internal QA
name: internal-qa
- display_name: Internal QA Sandbox
name: internal-qa-sandbox
- display_name: Sandbox
name: sandbox
- display_name: Integration Testing
name: int
- approval_type: manual
display_name: Production
name: prod
---
meta:
api:
name: ambulance-analytics
guid: 090e12f4-6f3c-4ea7-b7eb-d70687d22cea
spec_guids: ['538699e8-d039-4473-9e35-e3b79eb92d1e']
schema_version: 1
apigee:
environments:
{% for ENV in APIGEE_ENVIRONMENTS %}
{% set TITLE = 'Ambulance Data Submission (' + ENV.display_name + ')' %}
{% set PORTAL_VISIBILITY = not ENV.name.endswith("sandbox") %}
{% set DESCRIPTION = 'Ambulance Data Submission - ' + ENV.display_name | lower + ' environment' %}
{% set NAME = 'ambulance-analytics-' + ENV.name %}
- name: {{ ENV.name }}
products:
- name: {{ NAME }}
approvalType: {{ ENV.approval_type | default('auto') }}
attributes:
- name: ratelimiting
value:
# these are the per-proxy rate limits
ambulance-analytics-{{ ENV.name }}:
quota:
limit: 1800
enabled: true
interval: 1
timeunit: minute
spikeArrest:
ratelimit: 1800pm # actually enforces no more than 5tps
enabled: true
- name: access
value: public
- name: ratelimit
value: 300pm
description: {{ DESCRIPTION }}
displayName: {{ TITLE }}
environments: [ {{ ENV.name }} ]
proxies:
- ambulance-analytics-{{ ENV.name }}
- identity-service-{{ ENV.name }}
{% if ENV.name == 'int' %}
- identity-service-int-no-smartcard
{% endif %}
scopes:
- 'urn:nhsd:apim:user-nhs-cis2:aal3:{{ SERVICE_NAME }}'
- 'urn:nhsd:apim:app:level3:ambulance-analytics'
- 'urn:nhsd:apim:user-nhs-id:aal3:ambulance-analytics'
quota: '300'
quotaInterval: '1'
quotaTimeUnit: minute
specs:
- name: {{ NAME }}
path: ambulance-analytics.json
api_catalog:
- edgeAPIProductName: {{ NAME }}
anonAllowed: true
description: {{ DESCRIPTION }}
requireCallbackUrl: false
title: {{ TITLE }}
visibility: {{ PORTAL_VISIBILITY }}
specId: {{ NAME }}
{% endfor %}