MobileFirst JavaScript adapters

With IBM MobileFirst™ Platform Foundation, you can create, test, and deploy adapters that are written in JavaScript.

For more general information about MobileFirst adapters, see Adapters overview.

Benefits of MobileFirst JavaScript adapters

In addition to benefits that adapters provide in general, JavaScript adapters also provide these:

JavaScript adapter types

IBM MobileFirst Platform Foundation V8.0.0 supports HTTP and SQL adapters:

The JavaScript adapter framework

The adapter framework mediates between the mobile apps and the enterprise. A typical flow is depicted in the following diagram.

Figure 1. The JavaScript adapter framework
The diagram is explained in the following text.
Note:
  • Writing an adapter that pulls large amounts of data and transfers it to the client application is discouraged because the data must be processed twice: once at the adapter and once again at the client application.
  • HTTP POST requests are used for client-server communications between the MobileFirst application and the MobileFirst Server. Parameters must be supplied in a plain text or numeric format. To transfer images (or any other type of file data), they must first be encoded in Base64 format.