Forum Discussion

ashinde's avatar
ashinde
Guide
8 years ago

Accessing the endpoint using http.client not working for hidden category

Hi,  There are two endpoint.We are accessing a endpoint to other endpoint using "http.client". We are not getting proper response for hidden category. It's working fine for other category. Your ...
  • TariqHussain's avatar
    TariqHussain
    8 years ago

    ashinde- If you are doing this inside lithium, You can achieve the same result with lithium Restd V2 call.

     

    <#assign Resp= http.client.request( liurl+"/test-message?postId=${pid}").get()/>. You are calling other endpoint with this call.

    Could you please also show which call you are using to get categories?

     

    if you are using REST V1 or REST V2, you can get the hidden categories using restadmin call as mentioned by satya.

    However, using the restadmin will bypass all the permission settings.