Using Postman Client
Follow the below steps to test OData service using Postman Client.
Procedure
- In the 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 BWApplication.
- Click the Applications tab and then click the Deselect All button if you have multiple applications. Select the check box next to <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 lendpoints. This lists the information about the list of EntitySets that the CSDL contains and URL to access metadata information for the OData service. [Application Name] : odata_375.application
[Endpoint Type] : ODATA
[Endpoint URL] : http://localhost:9964/odata_375.application/Service/$metadata
[Reverse Proxy URL] : null
[ENTITYSETS] : Products, Categories
-
Launch the Google Chrome browser or Postman client.
- To execute QUERY operation on specified entitySet, replace $metadata with the name of entity set and open the http://localhost:<Port>/<Application_name>/Service/Products URL.
-
To execute READ operation on specified entitySet, specify the Key or Keys of the entity set which is defined in the
CSDL file.
If the entity set products has a KEY_ID as a type string, then the URL is
http://localhost:<Port>/<Application_name>/Service/Products(‘sample1’).
If the entity set products has multiple keys, then the URL is http://localhost:<Port>/<Application_name>/Service/Products(ID=’sample1’,name=’Tibco’).
- To execute CREATE operation on specified entitySet, access the http://localhost:<Port>/<Application_name>/Service/Products URL.
- To execute DELETE or UPDATE operation on specified entitySet, the URL pattern is same as used for READ operation.
Copyright © Cloud Software Group, Inc. All rights reserved.