Liferay DXP’s headless REST APIs follow the OpenAPI specification and let your apps consume RESTful web services. These APIs are developed using a mixture of the Contract First and Contract Last development approaches. This presents a best-of-both-worlds approach to API development. For more detailed information, see Headless REST APIs.
Here, you’ll learn how to use Liferay’s REST Builder tool to create headless REST APIs for your own apps. REST Builder is an API generator that consumes OpenAPI profiles and generates the API scaffolding: JAX-RS endpoints, parsing, XML generation, and advanced features like filtering or multipart (binary file) support. The developer only has to fill in the resource implementations, calling Liferay DXP’s remote services.
Read on to learn how to generate REST services with REST Builder!