Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Aritz Galdos
Extend Liferay service and expose via REST / JSON
January 2, 2013 7:55 AM
Answer

Aritz Galdos

Rank: Expert

Posts: 397

Join Date: May 15, 2007

Recent Posts

Hi community,

I am accesing Liferay data from an external system via JSON/REST. The services consist in both custom and built-in services of Liferay. I have no problem with custom services as I can add or modify the methods whenever I need.

But I would like to extend UserService with a new method and expose it via JSON service too.

I Implemented a Hook to override a Portal Service and deploed it to Liferay server, but the new method does not seem to be exposed via REST

Did anyone override + expose Liferay own services?

Regards!!!
Jelmer Kuperus
RE: Extend Liferay service and expose via REST / JSON
January 2, 2013 8:52 AM
Answer

Jelmer Kuperus

Rank: Liferay Legend

Posts: 1192

Join Date: March 10, 2010

Recent Posts

Service hooks only let you change the implementation of existing service methods.

You should probably create your own service that calls the userservice