留言板

REST API

thumbnail
angu manikandan,修改在10 年前。

REST API

Junior Member 帖子: 72 加入日期: 12-7-16 最近的帖子
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?????????????????????/
thumbnail
Pradip A Bhatt,修改在10 年前。

RE: REST API

Junior Member 帖子: 51 加入日期: 13-1-29 最近的帖子
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
thumbnail
David H Nebinger,修改在10 年前。

RE: REST API

Liferay Legend 帖子: 14916 加入日期: 06-9-2 最近的帖子
Okay, clearly you're new here...

http://localhost:8080/my-portlet-war/blah works just fine...
thumbnail
Pradip A Bhatt,修改在10 年前。

RE: REST API

Junior Member 帖子: 51 加入日期: 13-1-29 最近的帖子
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??
thumbnail
sridhar iyer,修改在10 年前。

RE: REST API

Junior Member 帖子: 57 加入日期: 09-2-27 最近的帖子
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
thumbnail
Pradip A Bhatt,修改在10 年前。

RE: REST API

Junior Member 帖子: 51 加入日期: 13-1-29 最近的帖子
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.
thumbnail
mohammad azaruddin,修改在10 年前。

RE: REST API

Expert 帖子: 492 加入日期: 12-9-17 最近的帖子
Hi pradeep

It would be helpfull to others if you write blog or wiki about REST
thumbnail
Pradip A Bhatt,修改在10 年前。

RE: REST API

Junior Member 帖子: 51 加入日期: 13-1-29 最近的帖子
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