Using the Postman Client

Follow the below steps to test OData service using Postman Client.

    Procedure
  1. 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.
  2. 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.
  3. 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].
  4. 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.application

    [Endpoint Type]: ODATA

    [Endpoint URL]: http://localhost:9964/odata_375.application/Service/$metadata

    [Reverse Proxy URL]: null

    [ENTITYSETS]: Products, Categories

    Open the Google Chrome browser or Postman client.
  5.  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.
    1. 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’).

    2. To run the CREATE operation on the specified entitySet, access the http://localhost:<Port>/<Application_name>/Service/Products URL.
    3. To run the DELETE or UPDATE operation on the specified entitySet, the URL pattern is the same as used for the READ operation.