Very Simple JSON REST service in Liferay CE 7.1.2 GA3Very Simple JSON REST service in Liferay CE 7.1.2 GA3https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1131392022024-03-28T15:39:11Z2024-03-28T15:39:11ZRE: Very Simple JSON REST service in Liferay CE 7.1.2 GA3Dennis Schilakowskihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1131553392019-04-11T14:55:24Z2019-04-11T14:55:24ZThanks you! It's working fine.Dennis Schilakowski2019-04-11T14:55:24ZRE: Very Simple JSON REST service in Liferay CE 7.1.2 GA3Christoph Rabelhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1131412252019-04-11T12:21:13Z2019-04-11T12:21:13Z<html><head></head><body>You have two options:<br>-) Create a 7.0 rest service. It still works in 7.1<br>-) Add the necessary properties for anonymous access:<br><br><pre><code>
@Component(
property = {
JaxrsWhiteboardConstants.JAX_RS_APPLICATION_BASE + "=/greetings",
JaxrsWhiteboardConstants.JAX_RS_NAME + "=Greetings.Rest",
"oauth2.scopechecker.type=none",
"auth.verifier.guest.allowed=true",
},
service = Application.class
)
</code></pre><br><br>https://community.liferay.com/de/forums/-/message_boards/message/112794830</body></html>Christoph Rabel2019-04-11T12:21:13ZVery Simple JSON REST service in Liferay CE 7.1.2 GA3Dennis Schilakowskihttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1131392012019-04-11T12:05:40Z2019-04-11T12:05:40ZHello everybody,<br />I would like to implement a really simple REST service which can be reached without authentication.<br />Yes he should be public :-).<br /><br />The "rest" template from the Liferay IDE creates a JAX-RS which would be the right approach and my favorite, unfortunately I can not reach the service without authentication.<br /><br />Does anyone have an idea how I can deactivate the authe