What's new in Customer Journeys?

Connect and learn more! ×
How to deploy OIC integrations in OCI API gateway and test them with postman? — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to deploy OIC integrations in OCI API gateway and test them with postman?

Received Response


  • Thom Blake-Oracle
    Thom Blake-Oracle Blue Ribbon
    edited Jan 7, 2021 6:20PM

    Generally, for the event subscription managed API you're going to deploy the integrations from the OIC side.

    For testing, it's possible to create custom subscriptions in the connect APIs (not recommended for PHP, says the documentation; I believe OIC uses SOAP but it would also be possible with REST). In the past I've created a subscription and sent it to a custom script to write php://input to a file. That lets me see exactly what is being sent back to OIC since I don't actually have an OIC instance in my role. The difficulty there is identifying the correct ObjectShapeXml; the best recommendation I have there is to create some subscription(s) to the object(s) you want in OIC and then use the Connect APIs to see what their ObjectShapeXml is so that you can use that for the same object you're testing.

    At that point, in Postman you would just send a request to create, update, or delete some object. You'll get 201 created in Postman but the subscription would go wherever you sent it, not your Postman client. In that regard you could also just do the action from the agent console or ask a question page, etc.. Then it'd be a matter of reviewing the object in either logs from OIC or your customization. I know that that kind of logging CAN be obtained from OIC but I have no idea how to actually do it.