Requests and responses

The File Manager Service Provider expects JSON payloads from z/OS® Connect-defined APIs representing requests, and passes back JSON payloads as responses to these requests.

The content of requests differs depending on which access method is used and whether the target resource is a base z/OS® file or an IMS or Db2® database.

All File Manager Service Provider requests require an HTTP Content-Type header in the following form:

Content-Type: application/json

All File Manager Service Provider initial requests to read a data resource (that is, requests that do not pass a token) require an HTTP Basic Authorization header in the following form:

Authorization : Basic credentials_string

where credentials_string represents a Base64 encoding of userid:password. For example:

Authorization : Basic dXNlcmlkOnBhc3N3b3Jk