Hi, I need to send Json data to OAuth enabled endpoint in OIC. I have created web credentials in Apex for that endpoint and using those web credentials i have created a rest data source. Now i am using this PL/SQL code to invoke the endpoint through rest data source.
Declare
l_context apex_exec.t_context;
Begin
apex_session.create_session(p_app_id =>'app id' , p_page_id => ‘page of application’, p_username =>'user');
END;
BEGIN
---CAll the rest data source using APEX_EXEC---
l_context := APEX_EXEC.OPEN_REST_SOURCE_QUERY(
p_static_id => ‘oic_rest’
);
END;
END;
Now this procedure is working fine and sending the json data which i have given in the POST operation while creating the rest data source. But i want to pass the json payload through the procedure. How can implement that in my procedure.