Forum Discussion

giannag's avatar
giannag
Adept
14 years ago

Accepted Solutions through REST with Perameters?

Hello!

 

I want to display a small list of "The most recent 5 accepted community solutions" on our company's customer support site. 

 

I can't do this through ActiveCast, since I want site-wide accepted solutions.  I've seen this post on a REST call for accepted solutions

http://lithosphere.lithium.com/t5/Customer-Connection/Accepted-Solutions-via-REST/m-p/18648#M1104

but how do I set parameters, such as

"Href target type",

"Number of messages",

"Number of words in subject",

"Number of words in body",

etc.  (similar to the ActiveCast parameters)?

 

Thank you,

Gianna

1 Reply

  • Hi
    the parameters for the number of messages is page_size...

     

    For the others, i don't see these query params in the rest api doc, so  you need to do it by yourself in your client-side / server side code (if you want for instance  truncate the body or the title text)


    Anyway, the url of the call would be like that :

     

    http://lithosphere.lithium.com/restapi/vc/solutions/recent?page_size=5&restapi.response_style=view&restapi.format_detail=full_list_element

     

    restapi.response_style=view : add the full url of the post in the view_href attribute

    restapi.format_detail=full_list_element : add the body text in the response...

     

     the detail of this call is in the restapidoc: Blog.html#Blog.solutions.recent

     

    hope this helps

     

    JC