Tutorial: JSON RESTful Web Service using API Resources

Walks you through the process of using the Interface Mapping Toolkit (IMTK) to define a JSON RESTful Web service for accessing resources, deploy it to an enterprise server instance, and invoke it with a request URI that results in a filtered output message.
Restriction: This topic applies only when the Enterprise Server feature is enabled.


Review the Assumptions and Before you begin a tutorial sections in the Tutorials: Interface Mapping Toolkit topic to ensure that your Visual COBOL environment is set up properly.

Demonstration application - CarsProgram

The CarsProgram demonstration application is a system for tracking the vehicles available for purchase at a used car dealership. Using the application, you can access and modify the available vehicles.

The application source code and data file are installed with Visual COBOL in the %PUBLIC%\Documents\Micro Focus\Visual COBOL\Samples\Interface Mapping Toolkit\ServiceInterfaces\CarsProgram directory by default. They are:

  • CarsProgram.cbl
  • cars.cpy
  • cars.xml


To complete this tutorial, progress through these topics in the order presented here. The bottom of each topic provides Next topic and Previous topic navigational links to help you proceed in the proper sequence: