postman_collection.json.ftl 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <#import "postman_common.ftl" as Common>
  2. {
  3. "info": {
  4. "_postman_id": "92b51dc5-3611-49ac-8d94-a0718dba5bf1",
  5. "name": "${project.projectName}",
  6. "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  7. },
  8. "item": [
  9. <#list project.serviceList as service>
  10. {
  11. "name": "${service.serviceName}",
  12. "item": [
  13. <#if service.groupedClassMap?size gt 0>
  14. <#list service.groupedClassMap?keys as groupName>
  15. <#assign groupedClassList=service.groupedClassMap[groupName] />
  16. {
  17. "name": "${groupName}",
  18. "item": [
  19. <#list groupedClassList as apiClass>
  20. {
  21. <@Common.generateControllerRequest service apiClass 7/>
  22. }<#if apiClass_has_next>,</#if>
  23. </#list>
  24. ],
  25. "protocolProfileBehavior": {},
  26. "_postman_isSubFolder": true
  27. }<#if groupName_has_next>,</#if>
  28. </#list>
  29. </#if>
  30. <#list service.defaultGroupClassSet as apiClass>
  31. {
  32. <@Common.generateControllerRequest service apiClass 5/>
  33. }<#if apiClass_has_next>,</#if>
  34. </#list>
  35. ],
  36. "protocolProfileBehavior": {},
  37. "_postman_isSubFolder": true
  38. }<#if service_has_next>,</#if>
  39. </#list><#-- project.serviceList as service -->
  40. ],
  41. "protocolProfileBehavior": {}
  42. }