You are here

credential.json.twig in Apigee Edge 8

Credential

Usage:

 {% include 'credential.json.twig' %} 

Variables:

  • credential: The app credential.

File

tests/modules/apigee_mock_api_client/tests/response-templates/credential.json.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Credential
  5. *
  6. * Usage:
  7. * @code {% include 'credential.json.twig' %} @endcode
  8. *
  9. * Variables:
  10. * - credential: The app credential.
  11. */
  12. #}
  13. {
  14. "apiProducts": [
  15. {% for product in credential.apiProducts %}
  16. {
  17. "apiproduct": "{{ product.name|default('api_product') }}",
  18. "status": "{{ product.status|default('approved') }}"
  19. }{{ loop.last ? '' : ',' }}
  20. {% endfor %}
  21. ],
  22. "attributes": [],
  23. "consumerKey": "{{ credential.consumerKey|default('dMHy6YlXjGerx7uyZocwP0LOEQgcUSEp') }}",
  24. "consumerSecret": "{{ credential.consumerSecret|default('dJ8omGPp3CejtANd') }}",
  25. "expiresAt": "{{ credential.expiresAt|default(1595289603149) }}",
  26. "issuedAt": "{{ credential.issuedAt|default(1594973277149) }}",
  27. "scopes": [],
  28. "status": "{{ credential.status|default('approved') }}"
  29. }