Using the Postman Client
Follow the below steps to test OData service using Postman Client.
- Procedure
- In Project Explorer, expand the Processes directory and double-click Service.bwp. In the left-hand tree of the Debug Configuration wizard, expand BusinessWorks application, and select BW application.
- Click the Applications tab, and then click the Deselect All button if you have multiple applications. Select the checkbox next to the <OData_Sample> application.
- Click
Debug. This runs the sample in Debug mode.
The Console view is opened and shows engine messages similar to: Started BW application [ODataTestServiceSample.application:1.0].
- In the
Console view, press
Enter to display the prompt:
<>@BWEclipseAppNode>.
Enter the OSGi command lend points. This lists the information about the list of EntitySets that the CSDL contains and the URL to access metadata information for the OData service. [Application Name]: odata_375.applicationOpen the Google Chrome browser or Postman client.[Endpoint Type]: ODATA
[Endpoint URL]: http://localhost:9964/odata_375.application/Service/$metadata
[Reverse Proxy URL]: null
[ENTITYSETS]: Products, Categories
- To run the QUERY operation on the specified entitySet, replace
$metadata with the name of the entity set and open the
http://localhost:<Port>/<Application_name>/Service/Products URL.
- To run the READ operation on the specified entitySet, specify the Key or Keys of the entity set which is defined in the
CSDL file.
If the entity set products have a KEY_ID as a type string, then the URL is http://localhost:<Port>/<Application_name>/Service/Products(‘sample1’).
If the entity set products have multiple keys, then the URL is http://localhost:<Port>/<Application_name>/Service/Products(ID=’sample1’,name=’Tibco’).
- To run the CREATE operation on the specified entitySet, access the http://localhost:<Port>/<Application_name>/Service/Products URL.
- To run the DELETE or UPDATE operation on the specified entitySet, the URL pattern is the same as used for the READ operation.
- To run the READ operation on the specified entitySet, specify the Key or Keys of the entity set which is defined in the
CSDL file.