-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmanifest_template.yml
More file actions
104 lines (102 loc) · 3.22 KB
/
manifest_template.yml
File metadata and controls
104 lines (102 loc) · 3.22 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
## Manifest template ##
# To view the expanded version of this template locally, clone api-management-utils
#
# $ cd /path/to/local/api-management-utils/ansible
# $ DIST_DIR=/path/to/this/repo make template-manifest
#
#
APIGEE_ENVIRONMENTS:
- display_name: Internal Development
make_spec_visible: true
name: internal-dev
- display_name: Internal Development Sandbox
name: internal-dev-sandbox
- display_name: Internal QA
make_spec_visible: true
name: internal-qa
- display_name: Internal QA Sandbox
make_spec_visible: true
name: internal-qa-sandbox
- display_name: Reference
make_spec_visible: true
name: ref
ratelimit: 40ps
quota: 2400
- display_name: Sandbox
name: sandbox
- display_name: Integration Testing
make_spec_visible: true
name: int
- display_name: Production
name: prod
make_spec_visible: true
approval_type: manual
ratelimit: '15000pm'
quota: '9000'
---
meta:
api:
name: summary-care-record
guid: 3ef873d7-18d3-4c51-b1f4-d36a3749c857
spec_guids: ['bec2d100-b515-4fa6-8a2f-617d73182b83']
schema_version: 1
apigee:
environments:
{% for ENV in APIGEE_ENVIRONMENTS %}
{% set TITLE = 'Summary Care Record (' + ENV.display_name + ')' %}
{% set DESCRIPTION = 'Summary Care Record - ' + ENV.display_name | lower + ' environment' %}
{% set NAME = 'summary-care-record-' + ENV.name %}
- name: {{ ENV.name }}
products:
- name: {{ NAME }}
approvalType: {{ ENV.approval_type | default('auto') }}
attributes:
- name: access
value: public
- name: ratelimit
value: {{ ENV.ratelimit | default('5ps') }}
description: {{ DESCRIPTION }}
displayName: {{ TITLE }}
environments: [ {{ ENV.name }} ]
proxies:
- summary-care-record-{{ ENV.name }}
- identity-service-{{ ENV.name }}
{% if ENV.name == 'int' %}
- identity-service-int-no-smartcard
- identity-service-mock-{{ ENV.name }}
{% endif %}
{% if ENV.name == 'internal-dev' or ENV.name == 'internal-qa' %}
- identity-service-mock-{{ ENV.name }}
{% endif %}
scopes:
- 'urn:nhsd:apim:app:level3:summary-care-record'
- 'urn:nhsd:apim:user-nhs-id:aal2:summary-care-record'
- 'urn:nhsd:apim:user-nhs-id:aal3:summary-care-record'
quota: {{ ENV.quota | default('300') }}
quotaInterval: '1'
quotaTimeUnit: minute
specs:
- name: {{ NAME }}
path: summary-care-record.json
api_catalog:
- edgeAPIProductName: {{ NAME }}
anonAllowed: true
description: {{ DESCRIPTION }}
requireCallbackUrl: {{ ENV.require_callback_url | default(true) }}
title: {{ TITLE }}
visibility: {{ ENV.make_spec_visible | default(false) }}
specId: {{ NAME }}
{% endfor %}
ACCESS_MODES:
- name: user-restricted
nameSuffix: ''
displayName: Healthcare Worker
scopes: ['urn:nhsd:apim:user-nhs-id:aal2:summary-care-record']
requireCallbackUrl: true
description: User restricted
- name: application-restricted
nameSuffix: -application-restricted
displayName: Application-Restricted
scopes: ['urn:nhsd:apim:app:level3:summary-care-record']
requireCallbackUrl: false
description: Application Restricted