developer-app.json.twig in Apigee Edge 8
Developer App include file.
Usage:
{% include 'developer-app.json.twig' %} Variables: An "app" with the following properties or keys.
- appId: AppId.
- displayName: User-friendly display name of the Developer App.
- name: Machine name of the Developer App.
- developerId: ID of the developer/app owner.
- status: The Developer App status.
File
tests/modules/apigee_mock_api_client/tests/response-templates/developer-app.json.twigView source
- {#
- /**
- * @file
- * Developer App include file.
- *
- * Usage:
- * @code {% include 'developer-app.json.twig' %} @endcode
- *
- * Variables: An "app" with the following properties or keys.
- * - appId: AppId.
- * - displayName: User-friendly display name of the Developer App.
- * - name: Machine name of the Developer App.
- * - developerId: ID of the developer/app owner.
- * - status: The Developer App status.
- */
- #}
- {
- "appFamily": "default",
- "appId": "{{ app.appId }}",
- "attributes": [
- {
- "name": "DisplayName",
- "value": "{{ app.displayName }}"
- }
- ],
- "developerId": "{{ app.developerId }}",
- "name": "{{ app.name }}",
- "status": "{{ app.status|default('approved') }}",
- "createdAt" : 1540110813284,
- "createdBy" : "{{ app.createdBy|default('foo@example.com') }}",
- "lastModifiedAt" : 1540110813284,
- "lastModifiedBy" : "{{ app.lastModifiedBy|default('foo@example.com') }}",
- "scopes" : [ ],
- "credentials" : [
- {% for credential in credentials %}
- {% include 'credential.json.twig' with {'credential': credential} %}{{ loop.last ? '' : ',' }}
- {% endfor %}
- ]
- }