Forum Discussion

Inactive User's avatar
Inactive User
4 years ago

How to list API V1 results? No LIST as in V2?

Trying to list the results of  <#assign superUsers = restadmin("/restapi/vc/roles/name/SuperUsers/users")/> How do I do that in Freemarker with API v1? v2 uses the <#list> functionality. What do...
  • Parshant's avatar
    4 years ago

    Inactive User,

    you can use the same <#list> functionality in V1 as well.

    Below is the code to help you

    <#assign superUsers = restadmin("/restapi/vc/roles/name/SuperUsers/users").users/>
    <#list superUsers.user as superUser >
    ${superUser.login}
    </#list>