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.

Prerequisite

Review the Assumptions and Before you begin a tutorial sections in the Tutorials: Interface Mapping Toolkit topic to ensure that your Enterprise Developer 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 Enterprise Developer in the $COBDIR/demo/Interface Mapping Toolkit/ServiceInterfaces/CarsProgram directory by default. They are:

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

Sequence

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: