Running the HTTP-REST Sample Project

After importing the sample project, you can run the HTTP-REST sample project to see how TIBCO ActiveMatrix BusinessWorks™ Plug-in for CICS to access the data from a CICS VSAM file.

SXGCRUP-VSAM-ACCESS show a project that accesses a CICS VSAM file (SXGCRUD) with Create, Update, Read and Delete subprocesses. It is dependent on a subprocess CALL-SXC3CRUD-SubProcess.

HTTP-REST provides a REST interface to the processes in SXGCRUP-VSAM-ACCESS. The ActiveMatrix BusinessWorks™ project provides a SWAGGER interface.

Procedure

  1. In the Project Explorer view, expand the Resources folder under the project CICS-PLUG-IN-VSAM, and then expand the cics-plug-in-vsam2 shared resource.
  2. Double-click an existing CICS connection to edit the CICS connection, and then click Test Connection to validate your connection.
  3. Select run bwapplication.
  4. When processes are up and running, do the following:
    1. On the console for the bwengine, click on the area and then hit Enter.
    2. A <>@BWEclipseAppNode> prompt should appear.
    3. Type LRESTDOC and hit Enter. The Discovery Url is displayed.
    4. Open this URL into a Web browser (use Chrome or Firefox)
  5. Click on Resource
  6. Click on /resource
  7. Click on Example Value area.
  8. In the service request area change the following fields to:
     {
             "function": "READ",
             "key": "1111"
          }
    
  9. Click Try it out!.
  10. In the Response Body, see the results from the CICS VSAM file.
  11. The supported functions are:
    • CREATE
    • DELETE
    • READ
    • UPDATE
  12. The keys for the records in the VSAM file are:
    • 1111
    • 2222
    • 3333
    • 4444
    • 5555