Forum Discussion

raguv12ps's avatar
6 years ago

Khoros APIv2 configurations

I am new to khoros community and was testing a restadmin call. Below is the code which i used in community(API V2) restadmin("2.0","/search?q=" + "SELECT * FROM roles WHERE users.id = '${user.id}' ...
  • AndrewF's avatar
    6 years ago

    Hi Ragu, your FreeMarker calls don’t need any adjustment because they don’t use HTTP to make a query. The API call is routed to the right place on the backend without needing the full URL. You should be all set on those.

     

    However, you might like to switch to use our newer ”liql” and “liqladmin” FreeMarker methods for making LiQL calls, since it is more convenient (no need for URL-escaping and URL concatenation.

  • AndrewF's avatar
    AndrewF
    6 years ago

    None of rest(...), restadmin(...), liql(...), liqladmin(...) use HTTP to make queries. They are server-side calls that don't involve HTTP things like the API proxy, hostnames, IP addresses, etc. As such there is no need to change any of them when switching away from the API Proxy.

     

    Andrew