operation

Parent: restDataSource

Direct Properties:

PropertyTypeRequiredDefault ValueDetails
namestringNodata type=string; maxLen=255
Enter a name of the REST Operation.
labelstringNodata type=string; maxLen=255
Display label for the REST Operation.

Property Groups:

  • operation
  • requestBody
  • dataProfile
  • remoteCache
  • advanced
  • comments
operation
PropertyTypeRequiredDefault ValueDetails
urlPatternstringYesdata type=string; maxLen=500
httpMethodenumYesdata type=string; lov=STATIC
Valid values: get post put delete patch
databaseOperationenumNodata type=string; lov=STATIC
Valid values: fetchRows fetchSingleRow insert update delete
operation {
  urlPattern: value
  httpMethod: get
  databaseOperation: fetchRows
}
requestBody
PropertyTypeRequiredDefault ValueDetails
templatemultiline stringNodata type=multiline string; maxLen=32760
versionNumberenumYes2data type=string; lov=STATIC
Valid values: 1 2
requestBody {
  template: ```
    value
  ```
  versionNumber: "1"
}
dataProfile
PropertyTypeRequiredDefault ValueDetails
nestedRowsreferenceNodata type=reference; lov=COMPONENT; references=dataProfileColumn
dataProfile {
  nestedRows: @component
}
remoteCache
PropertyTypeRequiredDefault ValueDetails
cachingenumNodata type=string; lov=STATIC
Valid values: allUsers user session
Applies whenhttpMethod in (get) and databaseOperation in (fetchRows)httpMethod in (get) and databaseOperation in (fetchSingleRow)httpMethod in (post) and databaseOperation in (fetchRows)httpMethod in (post) and databaseOperation in (fetchSingleRow)

Select how the Oracle APEX engine can cache REST Source responses on the server side. If caching can be used, the component will be rendered based on cached results instead of fetching from the REST service again. Only HTTP "GET" or "POST" requests that fetch data will be cached, which will cut down expensive HTTP requests. This feature is unrelated to the browser's caching capabilities.

timeoutmultiline stringNodata type=multiline string; maxLen=255
Applies whenhttpMethod in (get) and databaseOperation in (fetchRows) and caching is sethttpMethod in (get) and databaseOperation in (fetchSingleRow) and caching is sethttpMethod in (post) and databaseOperation in (fetchRows) and caching is sethttpMethod in (post) and databaseOperation in (fetchSingleRow) and caching is set
remoteCache {
  caching: allUsers
  timeout: ```
    value
  ```
}
advanced
PropertyTypeRequiredDefault ValueDetails
fixedPageSizeintegerNodata type=integer; maxLen=32767
allowFetchingAllRowsbooleanYesfalsedata type=boolean
Applies whendatabaseOperation = fetchRows
fetchAllRowsTimeoutintegerNodata type=integer; maxLen=32767
Applies whendatabaseOperation = fetchRows and allowFetchingAllRows = true
forceRaiseHttp404ErrorbooleanYesfalsedata type=boolean
Applies whendatabaseOperation = fetchRows
staticIdstringNodata type=string; maxLen=255
advanced {
  fixedPageSize: 42
  allowFetchingAllRows: false
  fetchAllRowsTimeout: 42
  forceRaiseHttp404Error: false
  staticId: value
}
comments
PropertyTypeRequiredDefault ValueDetails
commentsmultiline stringNodata type=multiline string; maxLen=4000
comments {
  comments: ```
    value
  ```
}

APEXlang Example

operation sample (
    name: value
    label: value
    operation {
        urlPattern: value
        httpMethod: get
        databaseOperation: fetchRows
    }
    requestBody {
        template: ```
          value
        ```
        versionNumber: "1"
    }
    dataProfile {
        nestedRows: @component
    }
    remoteCache {
        caching: allUsers
        timeout: ```
          value
        ```
    }
    advanced {
        fixedPageSize: 42
        allowFetchingAllRows: false
        fetchAllRowsTimeout: 42
        forceRaiseHttp404Error: false
        staticId: value
    }
    comments {
        comments: ```
          value
        ```
    }
)