Hi Team,
We are currently using Liferay version 7.4.2024.Q4 and have created a REST Builder API to expose content to mobile apps.
I updated the rest-openapi.yaml file with the required request/response parameters. After successfully running buildREST, all necessary classes and methods were generated, and we implemented our custom logic in the *ResourceImpl.java file.
However, when we try to run the query in the /o/api GraphQL tab, it throws the following error:
[http-nio-8080-exec-8][GraphQL:591] Query did not validate
We already have six APIs exposed to other systems through REST Builder. To troubleshoot, we compared the new REST Builder module with the older ones and noticed that the Query.java class is not generating the method required to execute the query in GraphQL.
Could you please clarify:
Why is the method not automatically generated in Query.java for this new REST Builder API?
Is there any additional configuration required to expose it via GraphQL?
Thanks!