You are here

api-product.json.twig in Apigee Edge 8

ApiProduct include file. Use this whenever an edge product is a part of an object.

Usage:

 {% include 'api-product.json.twig' %} 

Variables:

  • description: Description of API product.
  • display_name: User-friendly display name of the API product.
  • name: Name of the API product.
  • createdBy: The user who created the product.

File

tests/modules/apigee_mock_api_client/tests/response-templates/api-product.json.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * ApiProduct include file. Use this whenever an edge product is a part of an object.
  5. *
  6. * Usage:
  7. * @code {% include 'api-product.json.twig' %} @endcode
  8. *
  9. * Variables:
  10. * - description: Description of API product.
  11. * - display_name: User-friendly display name of the API product.
  12. * - name: Name of the API product.
  13. * - createdBy: The user who created the product.
  14. */
  15. #}
  16. {
  17. "apiResources" : [ ],
  18. "approvalType" : "auto",
  19. "attributes" : [ ],
  20. "createdAt" : 1540110813284,
  21. "createdBy" : "{{ product.createdBy|default('foo@example.com') }}",
  22. "description" : "{{ product.description|default('All about the Foo.') }}",
  23. "displayName" : "{{ product.displayName|default('The Foo') }}",
  24. "environments" : [ ],
  25. "lastModifiedAt" : 1540110813284,
  26. "lastModifiedBy" : "foo@example.com",
  27. "name" : "{{ product.name|default('Foo') }}",
  28. "proxies" : [ ],
  29. "scopes" : [ ]
  30. }