14 Exposing APIs for Integration

Expose REST APIs for external integrations while reusing business logic and securing access.

A PL/SQL package provides an application programming interface (API) for any solution in your workspace. However, when external systems need to integrate with your app, you need to provide them a REST API instead. It's a web service that another program can call over the network, and uses JavaScript Object Notation (JSON) as a simple way to send and receive data.

Some integrations only need to read data, while others may require creating, updating, or deleting it. If you let an outside system change your application data, you must apply the same validation and defaulting business logic used in your web user interface to keep bad data out of your system of record. In either case, you need to ensure only intended clients can access your services.

This section's example code helps you witness how two key Oracle 26ai features can cut the effort to expose APIs in half.