13.5 Using REST APIs in Code
Sometimes your applications need to work with REST APIs in code. Using REST
Data Sources is the maximally-declarative approach. In contrast, the
MAKE_REST_REQUEST function in the APEX_WEB_SERVICE
package provides additional control but requires writing more code.
- Processing REST Source Rows in Code
Use theAPEX_EXECpackage to process rows from REST Data Sources programmatically. - Invoking a REST Operation Programmatically
You can invoke a REST Data Source operation programmatically, treating it like a function call instead of a row set. - Calling REST APIs Without a Data Source
Use theAPEX_WEB_SERVICEpackage to call a REST API that requires a binary payload or returns a binary response. Binary payloads require this approach. You can also use the package for general REST calls, but then you must code many tasks that a REST Data Source handles declaratively.
Parent topic: Integrating Remote Data