You are here

developer.json.twig in Apigee Edge 8

Developer

Usage:

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

Variables:

  • developer: The user account for the developer.
  • org_name: The name of the organization.
  • companies: A list of companies.

File

tests/modules/apigee_mock_api_client/tests/response-templates/developer.json.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Developer
  5. *
  6. * Usage:
  7. * @code {% include 'developer.json.twig' %} @endcode
  8. *
  9. * Variables:
  10. * - developer: The user account for the developer.
  11. * - org_name: The name of the organization.
  12. * - companies: A list of companies.
  13. */
  14. #}
  15. {
  16. "apps" : [ ],
  17. "companies" : [
  18. {% for company in companies %}
  19. "{{ company }}"{{ loop.last ? '' : ',' }}
  20. {% endfor %}
  21. ],
  22. "email" : "{{ developer.mail.value }}",
  23. "developerId" : "{{ developer.uuid.value }}",
  24. "firstName" : "{{ developer.first_name.value }}",
  25. "lastName" : "{{ developer.last_name.value }}",
  26. "userName" : "{{ developer.name.value }}",
  27. "organizationName" : "{{ org_name }}",
  28. "status": "{{ developer.status.value|default(1) ? 'active' : 'inactive' }}",
  29. "attributes" : [
  30. {
  31. "name" : "MINT_BILLING_TYPE",
  32. "value" : "PREPAID"
  33. },
  34. {
  35. "name" : "MINT_DEVELOPER_TYPE",
  36. "value" : "UNTRUSTED"
  37. },
  38. {
  39. "name": "MINT_DEVELOPER_LEGAL_NAME",
  40. "value": "{{ developer.mail.value }}"
  41. },
  42. {
  43. "name": "IS_MOCK_CLIENT",
  44. "value": "1"
  45. } ],
  46. "createdAt" : 1537547358558,
  47. "createdBy" : "user@example.com",
  48. "lastModifiedAt" : 1537547358558,
  49. "lastModifiedBy" : "user@example.com"
  50. }