RE: Hypermedia API Setup Not Working (Apparently) in DXP 7.2

Michael Freeman, modified 6 Years ago. Junior Member Posts: 37 Join Date: 7/2/12 Recent Posts
Can some one help me to figure out what is required in order to get the Hypermedia APIs (/o/api) working on DXP EE 7.2?
I have followed the instructions provided here, to the letter, now multiple times with complete cleanup of OSGi and Tomcat working directories and any and all attempts to reach the /o/api endpoint return always returns a 404.
Both public access and with Basic Auth enabled result in the same 404. Postman, curl, doesn't matter.

I can see that the Hypermedia OSGi modules appear to active as seen below in the screenshot from the Gogo shell:

So at this point I am completely out of ideas and would appreciate it if ANYONE could offer a thought on how best to troubleshoot this
Thanks
--Mike
thumbnail
Javier Gamarra, modified 6 Years ago. Expert Posts: 348 Join Date: 2/12/15 Recent Posts
Oh... that documentation is only valid for 7.1 (and partially), I'll talk with the doc team to revamp it.

Headless documentation for 7.2 is available here: https://portal.liferay.dev/docs/7-2/frameworks/-/knowledge_base/f/headless-rest-apis

You shouldn't need to do anything, is available by default. You can check the endpoints in the OpenAPI profiles (https://app.swaggerhub.com/apis/liferayinc) or launching jaxrs:check in the OSGi console. URLs are like this: http://localhost:8080/o/headless-delivery/v1.0/structured-contents/74421/

Those are the new APIs... you are trying to install the 7.1 version (that depends on apio-architect, that is the dependency that is missing). Our recommendation for 7.2 (and even 7.1) is to use the new Headless APIs based on OpenAPI. If you, for any specific reason, need to install the 7.1 version you should add the apio-architect jars (https://github.com/liferay/com-liferay-apio-architect). I can guide you but that approach is not tested/continued in 7.2.
Michael Freeman, modified 6 Years ago. Junior Member Posts: 37 Join Date: 7/2/12 Recent Posts
This worked for me and solved my problem on 7.2. Thanks