How to design, implement and test a REST service
Talend ESB allows you to initialize a REST service from an OAS/Swagger 2.0 API definition file. This document explains how to design an API in an API Design Studio and build a REST service from it.
Design your API in the API Design Studio and fill operations ids. For more
information, see https://restlet.com/documentation/studio/user-guide/basics/introduction.
Export your API definition to an OAS / Swagger 2.0 file.
- Open Talend Studio, create a Standard Job, and add a tRESTRequest component. For more information, see Getting started with a basic Job.
Import your OAS / Swagger 2.0 file in the tRESTRequest
component. For more information about the tRESTRequest
component, see tRESTRequest.
Your tRESTRequest endpoint, API mappings and documentation are now initialized.
- Implement your service and run it. For more information, see Running Jobs and Routes.
Return to the API Design Studio, open an operation, and click "Try
in Client" to open the API Test Client. For more information,