Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
angu manikandan
REST API
April 25, 2013 1:13 AM
Answer

angu manikandan

Rank: Junior Member

Posts: 72

Join Date: July 16, 2012

Recent Posts

Hi,
How to integrate Rest Api in Liferay?..........give me suggestion regarding this..................Tell me some useful idea my mind is blank about this......dont knw gonna wat happen?????????????????????/
Pradip A Bhatt
RE: REST API
May 2, 2013 7:29 AM
Answer

Pradip A Bhatt

Rank: Junior Member

Posts: 51

Join Date: January 29, 2013

Recent Posts

Hello...


I am facing this issue currently.

I am integrated Jersey + RESTful Web service + JSON successfully in non Liferay Application. Then I tried this same concept in portlet project. but in liferay, we can not access any portlet directly.

Normal Tomcat application : http://localhost:<port>/<applicationName>

But in liferay ..


we have to just fire url like

http://localhost:8080

Then it will displays list of portlet which on that page. So in short, directly its not possible. So. i am planning to switch with JSON web service. I have no idea in, although tried. If you get better solution then reply me.

Thanksssssssssss
David H Nebinger
RE: REST API
May 2, 2013 8:40 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 6476

Join Date: September 1, 2006

Recent Posts

Okay, clearly you're new here...

http://localhost:8080/my-portlet-war/blah works just fine...
Pradip A Bhatt
RE: REST API
May 2, 2013 9:50 PM
Answer

Pradip A Bhatt

Rank: Junior Member

Posts: 51

Join Date: January 29, 2013

Recent Posts

Sir,

http://localhost:8080/my-portlet-war/blah works just fine...

here what is my-portlet-war and what is blah??

can you please explained??
sridhar iyer
RE: REST API
May 2, 2013 10:50 PM
Answer

sridhar iyer

Rank: Junior Member

Posts: 57

Join Date: February 27, 2009

Recent Posts

angu manikandan:
Hi,
How to integrate Rest Api in Liferay?..........give me suggestion regarding this..................Tell me some useful idea my mind is blank about this......dont knw gonna wat happen?????????????????????/


If you want to consume rest web service in liferay portlet, try using some framework like Spring

Spring RestTemplate
Pradip A Bhatt
RE: REST API
May 3, 2013 6:39 AM
Answer

Pradip A Bhatt

Rank: Junior Member

Posts: 51

Join Date: January 29, 2013

Recent Posts

Hello....
Finally , I successfully integrated Jersey RESTful web service with portlet.
You have to understand what is jersey framework.

For more inquiry...

Contact me.

Pradip Bhatt.
mohammad azaruddin
RE: REST API
May 3, 2013 8:29 AM
Answer

mohammad azaruddin

Rank: Expert

Posts: 438

Join Date: September 17, 2012

Recent Posts

Hi pradeep

It would be helpfull to others if you write blog or wiki about REST
Pradip A Bhatt
RE: REST API
May 3, 2013 9:51 PM
Answer

Pradip A Bhatt

Rank: Junior Member

Posts: 51

Join Date: January 29, 2013

Recent Posts

Visit this one..

http://www.liferay.com/web/pradip.bhatt/blog?p_p_id=33&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&p_p_col_id=column-2&p_p_col_count=1