Headless REST APIs is not working in Liferay 7.1, is it supported here?

thumbnail
Anuvab Ghosh, modified 5 Years ago. Regular Member Posts: 130 Join Date: 4/18/15 Recent Posts
Hi,I have used Liferay 7.1 EE and CE both version for Headless Rest API, created a content on that site. After that tried to call the URL http://localhost:8080/o/headless-delivery/v1.0/sites/20126/structured-contents with Basic Authentication in Postman ( Site ID: 20126 ).

But getting 404 Not Found in Response.  Please check the attached screenshot
As per Liferay Documentation, headless API should be supported in 7.1+.I am getting proper response in 7.2 but not in 7.1.Is there any extra configuration needed for Liferay 7.1 to enable the Headless API?
Waiting for the reply.Thanks in advance.
With regards,
Anuvab
thumbnail
David H Nebinger, modified 5 Years ago. Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent Posts
Is your OAuth2 configuration set? Any issue w/ CORS reported in the reply?
thumbnail
Anuvab Ghosh, modified 5 Years ago. Regular Member Posts: 130 Join Date: 4/18/15 Recent Posts
Thanks for your reply David. 
As per the Liferay 7.1 Documentation (https://portal.liferay.dev/docs/7-1/tutorials/-/knowledge_base/t/making-authenticated-requests), we can use Basic or OAuth 2 authentication to call the service URL (even Unauthenticated request is also possible). I have used Basic Authentication here, same thing works  when tried with 7.2 with no OAuth2 configuration.
I have not seen CORS related error in Errors or Headers.  I am sharing another screenshot of Postman related to this, please check.
Waiting for your reply.
With Regards,
Anuvab
thumbnail
Anuvab Ghosh, modified 5 Years ago. Regular Member Posts: 130 Join Date: 4/18/15 Recent Posts
Hi,

I am waiting for your reply. Kindly provide some solution for the same.

Regards,
Anuvab
thumbnail
Javier Gamarra, modified 5 Years ago. Expert Posts: 348 Join Date: 2/12/15 Recent Posts
What version of 7.1 EE are you using? Headless is available from Fixpack 10 onwards.
thumbnail
Anuvab Ghosh, modified 5 Years ago. Regular Member Posts: 130 Join Date: 4/18/15 Recent Posts
Thank you Javier for the reply. It may be the case. Is it mentioned anywhere in Liferay Documentation?
thumbnail
Javier Gamarra, modified 5 Years ago. Expert Posts: 348 Join Date: 2/12/15 Recent Posts
I don't think so, sadly, but I guess it's documented in the fixpack changelog releases and in some blog posts: https://liferay.dev/blogs/-/blogs/headless-apis-for-decoupled-liferay-platform- or https://liferay.dev/forums/-/message_boards/message/113539707