Forum Discussion

jpravago's avatar
jpravago
Contributor
13 years ago

Getting page not found error from browser

Hi,

 

I'm new to Lithium and after reading the rest api, I tried to do a very simple taks to get the most recent blogs. I'm expecting the XML response will be displayed in the browser, but in turn, I'm getting unexpected error.

 

The main community is from this URL:

http://h30499.www3.hp.com/t5/hp-ux-based/bd-p/itrc-200

 

Can anyone help me how to make this code work, that is display the XML response in the browser?

 

<html> <body>

<form

action="http://h30499.www3.hp.com/t5/hp-ux-based/restapi/vc/topics/style/blog/recent?page_size=3 method="POST" >

<p> <label> <input type="submit" value="Post Reply"> </label> </p>

</form>

</body>

</html>

 

Thanks for the help.

 

 

  • AdamN's avatar
    AdamN
    Khoros Oracle

    Hi jpravago,

     

    The base URL for REST API calls is in the format:

    http://<community domain>/<community id>/restapi/vc/

     

    For the community you linked to, this would look like:

    http://h30499.www3.hp.com/hpeb/restapi/vc/

     

    So you'll want to build all your calls using that base URL.

     

    I hope this helps!