Using Postman Client

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

Procedure

  1. In the Project Explorer, expand the Processes directory and double-click Service.bwp.
  2. In the left-hand tree of the Debug Configuration wizard, expand BusinessWorks Application, and select BWApplication.
  3. 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.
  4. 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].
  5. 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

  6. Launch the Google Chrome browser or Postman client.
    1. 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.
    2. 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’).

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