Skip to Main Content
  • Questions
  • Call external REST API from ORDS endpoint

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Dirk.

Asked: May 19, 2021 - 2:07 pm UTC

Last updated: June 02, 2021 - 6:40 am UTC

Version: ORDS 19.4.6

Viewed 1000+ times

You Asked

We created an API with ORDS. This works fine.

However, for one use case we need to call an external REST API from the ORDS endpoint.
What is the best way to realize this?

I know that there is the HTTP.BEGIN_REQUEST.

I was wondering if this is the best way to realise the use-case or if there other solutions.

and Connor said...

In my view, the best way to call REST services from the database is via APEX_WEB_SERVICE.

Even if you never use APEX, installing it in the database gives a myriad of cool facilities to make life easier.

Tim Hall has a nice post on it

https://oracle-base.com/articles/misc/apex_web_service-consuming-soap-and-rest-web-services


Is this answer out of date? If it is, please let us know via a Comment

More to Explore

APEX

Keep your APEX skills fresh by attending their regular Office Hours sessions.