Access Rest API without Authentication

Gohel Manoj, modified 5 Years ago. New Member Posts: 18 Join Date: 1/29/16 Recent Posts
Hi,
I create one sample rest service using this link.

Problem is when I access this API via postman or any other rest-client without basic auth it gives below error.

 <?xml version="1.0" encoding="UTF-8" standalone="yes"?><Forbidden><message>Access denied to org.javasavvy.leave.rest.application.LeaveRestControllerApplication#morning</message></Forbidden>

But if I add basic auth, then it works properly.So how we can access this API without basic auth.?LR Version : liferay-ce-portal-7.2.0-ga1
Appreciate your help!
Thanks in advance ..!!
Gohel Manoj, modified 5 Years ago. New Member Posts: 18 Join Date: 1/29/16 Recent Posts