IBM provided information
The IBM-contributed content on this page is under construction. Feel free to add your comments to help us improve it.
Background information
WebSphere Portlet Factory version 6.0.2 includes the REST Service Call builder. It can be used to consume REST Service Calls. However, you can also use WebSphere Portlet Factory to create your own REST Services.
Sample description
This sample demonstrates how to design a model so that it can be consumed as a REST Service call. It contains two models.
- REST_ServiceExample - this model illustrates how to build a basic REST Service.
- REST_ConsumerExample - this model is included so that you can quickly consume the REST Service.
Notes on running the sample and prerequisites
Import the attached zip file into your project using the Import WebSphere Portlet Factory Archive command.
After downloading and installing the sample, you will need to edit the REST_ConsumerExample model. You will need to edit the REST Service Call builder call in the model so that the URL is correct for your environment.
Change the value of the URL input and the Smple Data URL input field so that the URL is correct for your project.
Download
REST_ProviderAndConsumer.zip