You are here

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.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Developer App include file.
  5. *
  6. * Usage:
  7. * @code {% include 'developer-app.json.twig' %} @endcode
  8. *
  9. * Variables: An "app" with the following properties or keys.
  10. * - appId: AppId.
  11. * - displayName: User-friendly display name of the Developer App.
  12. * - name: Machine name of the Developer App.
  13. * - developerId: ID of the developer/app owner.
  14. * - status: The Developer App status.
  15. */
  16. #}
  17. {
  18. "appFamily": "default",
  19. "appId": "{{ app.appId }}",
  20. "attributes": [
  21. {
  22. "name": "DisplayName",
  23. "value": "{{ app.displayName }}"
  24. }
  25. ],
  26. "developerId": "{{ app.developerId }}",
  27. "name": "{{ app.name }}",
  28. "status": "{{ app.status|default('approved') }}",
  29. "createdAt" : 1540110813284,
  30. "createdBy" : "{{ app.createdBy|default('foo@example.com') }}",
  31. "lastModifiedAt" : 1540110813284,
  32. "lastModifiedBy" : "{{ app.lastModifiedBy|default('foo@example.com') }}",
  33. "scopes" : [ ],
  34. "credentials" : [
  35. {% for credential in credentials %}
  36. {% include 'credential.json.twig' with {'credential': credential} %}{{ loop.last ? '' : ',' }}
  37. {% endfor %}
  38. ]
  39. }