18.4.7.8 Overriding Default Runtime Headers If Necessary

Define a REST Data Source parameter to use a later REST framework version.

By default APEX uses version 6 of the REST framework in its communication with the endpoint. If a particuar REST Data Source you define needs to use a later REST framework version, you can achieve this by defining a module parameter (or operation parameter) of type Header. Name the header REST-Framework-Version and provide the unquoted, overridden version number you need to use as the value of the header. For example:

REST-Framework-Version = 7

By default APEX will configure the appropriate header on REST requests to use the sandbox name you configure in the Shared Components, Component Settings, Oracle Cloud Applications (SaaS) REST Service page of your application if it's value is non-null. If that app-level setting is null, then no header gets sent. If you need to override the app-level sandbox name setting for a particular REST Data Source, then you can define a module (or operation) parameter of type Header to achieve this. Name the header Metadata-Context and set the value to one of the following:

  • sandbox="YourOtherSandboxName", assuming the sandbox is named YourOtherSandbox
  • Leave the header value blank (or null) as a signal that this particular data source (or operation) should avoid using a sandbox.