Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Unable to access end points related to Liferay Headless Api
Current i am using 7.1 DXP (Enterprise Edition) , I want to list all the exposed end points Headless Api liferay but unfortunately i am unable to move forward
although i have followed this link (https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-1/enabling-hypermedia-rest-apis)
but when send request to http://localhost:8080/o/api with authorization header it does not respond anything
configurations are
oauth2.scopechecker.type="none"
auth.verifier.auth.verifier.BasicAuthHeaderAuthVerifier.urls.includes="*"
auth.verifier.auth.verifier.OAuth2RestAuthVerifier.urls.includes="*"
auth.verifier.guest.allowed="true"
Same thing i tried with liferay-ce-portal-7.1.2-ga3 but no success ,
Kindly help me in this regard
although i have followed this link (https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-1/enabling-hypermedia-rest-apis)
but when send request to http://localhost:8080/o/api with authorization header it does not respond anything
configurations are
oauth2.scopechecker.type="none"
auth.verifier.auth.verifier.BasicAuthHeaderAuthVerifier.urls.includes="*"
auth.verifier.auth.verifier.OAuth2RestAuthVerifier.urls.includes="*"
auth.verifier.guest.allowed="true"
Same thing i tried with liferay-ce-portal-7.1.2-ga3 but no success ,
Kindly help me in this regard
+1. Same exact problem, now on DXP 7.2. Feature shows great promise, but apparently doesnt work
Hi!
That documentation is only valid for 7.1 FP5 - FP11, I'll talk with the doc team to revamp it. Which fixpack and server are you using? I've followed the steps (create a file called com.liferay.apio.architect.internal.application.ApioApplication-default.config, with that content, under osgi/configs) and curl http://localhost:8080/o/api works fine with liferay-ce-portal-7.1.2-ga3.
Can you also check in the OSGi console that everything is deployed correctly? a system:check would be enough.
The new approach is based on OpenAPI and will work on 7.1 too (FP12). Headless documentation for 7.2 is available here: https://portal.liferay.dev/docs/7-2/frameworks/-/knowledge_base/f/headless-rest-apis
That documentation is only valid for 7.1 FP5 - FP11, I'll talk with the doc team to revamp it. Which fixpack and server are you using? I've followed the steps (create a file called com.liferay.apio.architect.internal.application.ApioApplication-default.config, with that content, under osgi/configs) and curl http://localhost:8080/o/api works fine with liferay-ce-portal-7.1.2-ga3.
Can you also check in the OSGi console that everything is deployed correctly? a system:check would be enough.
The new approach is based on OpenAPI and will work on 7.1 too (FP12). Headless documentation for 7.2 is available here: https://portal.liferay.dev/docs/7-2/frameworks/-/knowledge_base/f/headless-rest-apis
This answer solved my problem and worked for me on 7.2 Thanks
solved Thanks

Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™