Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
angu manikandan
REST API
25. April 2013 01:13
Antwort

angu manikandan

Rang: Junior Member

Nachrichten: 72

Eintrittsdatum: 16. Juli 2012

Neue Beiträge

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
2. Mai 2013 07:29
Antwort

Pradip A Bhatt

Rang: Junior Member

Nachrichten: 51

Eintrittsdatum: 29. Januar 2013

Neue Beiträge

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
2. Mai 2013 08:40
Antwort

David H Nebinger

Community Moderator

Rang: Liferay Legend

Nachrichten: 11770

Eintrittsdatum: 1. September 2006

Neue Beiträge

Okay, clearly you're new here...

http://localhost:8080/my-portlet-war/blah works just fine...
Pradip A Bhatt
RE: REST API
2. Mai 2013 21:50
Antwort

Pradip A Bhatt

Rang: Junior Member

Nachrichten: 51

Eintrittsdatum: 29. Januar 2013

Neue Beiträge

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
2. Mai 2013 22:50
Antwort

sridhar iyer

Rang: Junior Member

Nachrichten: 57

Eintrittsdatum: 27. Februar 2009

Neue Beiträge

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
3. Mai 2013 06:39
Antwort

Pradip A Bhatt

Rang: Junior Member

Nachrichten: 51

Eintrittsdatum: 29. Januar 2013

Neue Beiträge

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 Azharuddin
RE: REST API
3. Mai 2013 08:29
Antwort

Mohammad Azharuddin

Rang: Expert

Nachrichten: 479

Eintrittsdatum: 17. September 2012

Neue Beiträge

Hi pradeep

It would be helpfull to others if you write blog or wiki about REST
Pradip A Bhatt
RE: REST API
3. Mai 2013 21:51
Antwort

Pradip A Bhatt

Rang: Junior Member

Nachrichten: 51

Eintrittsdatum: 29. Januar 2013

Neue Beiträge

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