Creating a REST Service

A service is created from a process. You expose the process and describe the content that is sent and received by the process in an XSD. The XSD defines the data that you send and receive. The process is the actual implementation of what you do with the data.

The key abstraction of information in REST is a resource. REST ignores the details of component implementation and protocol details. TIBCO BusinessWorks Container Edition supports the following HTTP methods: GET, PUT, DELETE, PATCH, and POST. Both XML and JSON are supported as data serialization formats along with support for definition of custom status codes, path(URL) parameters, key-value parameters, query parameters, form parameters, and custom HTTP headers.
You can create a REST service in TIBCO Business Studio for BusinessWorks in one of the following ways:
  • Using a Swagger file
  • Without a Swagger file by creating a process and adding a REST resource to it using the REST Service Wizard