Oracle by Example brandingAdding Endpoints for JderestV3Orchestrator

section 0Before You Begin

This 20-minute tutorial shows you how to add endpoints for JderestV3Orchestrator.

Scenario

You must have completed these tasks:

  • Created an orchestration that retrieves the information regarding customers
  • Created a new flow customer_search_contact_customer under the customer_search flow
  • Created a new blank or custom page under the customer_search_contact_customer flow. Rename it as customer_search_contact_customer-search_customer

    We will be using this page in this tutorial.


section 1Adding Endpoints for JderestV3Orchestrator

To add endpoints for JderestV3Orchestrator:

  1. Go to the service connection, jderestV3Orchestrator.
  2. On the Servers tab, select Basic from the Authentication drop-down menu.
  3. Click the Edit button next to Username.
  4. In the User Credentials dialog box, enter your JD Edwards environment credentials.
  5. To add endpoints for the JDE_ORCH_CustomerSearch_CustomerCheck orchestration, go to the Endpoints tab and click + Endpoint.
  6. Description of 1.png follows
    Endpoint
  7. In the Add Endpoint dialog box, complete these fields:
    • Method = Post
    • Path = /JDE_ORCH_CustomerSearch_CustomerCheck
    • Action Hint = Custom
  8. Click Add.
    Description of 2.png follows
    Add Endpoint
  9. In the Endpoints tab, click the newly created endpoint postJDE_ORCH_CustomerSearch_CustomerCheck.
  10. Navigate to the Request tab, Body.
  11. Enter the following sample request of the orchestration in the text area of the Body pane:
    {
    "Address Number 1": "*",
    "Alpha Name 1": "*Vision*",
    "Sch Typ 1": "C"
    }
  12. Select application/json as the media type.
  13. Go to the Test tab, click Send. Wait for the status to be 200 OK. The response appears in the Body tab.
  14. Click Save as Example Response in the Body pane of the Response section.
    Description of 3.png follows
    Sample Response
  15. Go to the Endpoints tab, click + Endpoint to add an endpoint for the orchestration JDE_ORCH_CustomerSearch_CompanyAddress.
  16. In the Add Endpoint dialog box, complete these fields:
    • Method = Post
    • Path = /JDE_ORCH_CustomerSearch_CompanyAddress
    • Action Hint = Custom
  17. Click Add.
    Description of 4.png follows
    Add Endpoint
  18. In the Endpoints tab, click the newly created endpoint postJDE_ORCH_CustomerSearch_CompanyAddress.
  19. Navigate to the Request tab, Body.
  20. Enter the following sample request of the orchestration in the text area of the Body pane.
    {
      "Address_Number": "4242",
      "Co": "00200",
      "Sch_Typ": "C",
      "P03013_Version": "ZJDE0001"
    }
  21. Select application/json as the media type.
  22. Go to the Test tab, click Send. Wait for the status to be 200 OK. The response appears in the Body tab.
  23. Click Save as Example Response in the Body pane of the Response section.
    Description of 5.png follows
    Sample Response
  24. Go to the Endpoints tab, click + Endpoint to add an endpoint for the JDE_ORCH_CustomerSearch_CustomerContactInfo orchestration.
  25. In the Add Endpoint dialog box, complete these fields:
    • Method = Post
    • Path = /JDE_ORCH_CustomerSearch_CustomerContactInfo
    • Action Hint = Custom
  26. Click Add.
    Description of 6.png follows
    Add Endpoint
  27. In the Endpoints tab, click the newly created endpoint postJDE_ORCH_CustomerSearch_CustomerContactInfo.
  28. Navigate to the Request tab, Body.
  29. Enter the following sample request of the orchestration in the text area of the Body pane:
    {
      "Address_Number": "4242",
      "Co": "00200",
      "Sch_Typ": "C",
      "P03013_Version": "ZJDE0001",
      "Line_ID": "0"
    }
  30. Select application/json as the media type.
  31. Go to the Test tab, click Send. Wait for the status to be 200 OK. The response appears in the Body tab.
  32. Click Save as Example Response in the Body pane under the Response section.
    Description of 7.png follows
    Sample Response
  33. Go to the Endpoints tab, click + Endpoint to add the endpoint for the orchestration JDE_ORCH_CustomerSearch_CustomerContacts.
  34. In the Add Endpoint dialog box, complete these fields:
    • Method = Post
    • Path = /JDE_ORCH_CustomerSearch_CustomerContacts
    • Action Hint = Custom
  35. Click Add.
    Description of 8.png follows
    Add Endpoint
  36. In the Endpoints tab, click the newly created endpoint postJDE_ORCH_CustomerSearch_CustomerContacts.
  37. Navigate to the Request tab, Body.
  38. Enter the following sample request of the orchestration in the text area of the Body pane:
    {
      "Address_Number": "4242",
      "Co": "00200",
      "Sch_Typ": "C",
      "P03013_Version": "ZJDE0001"
    }
  39. Select application/json as the media type.
  40. Go to the Test tab, click Send. Wait for the status to be 200 OK. The response appears in the Body tab.
  41. Click Store as Example Response in the Body pane of the Response section.
    Description of 9.png follows
    Sample Response
  42. Go to the Endpoints tab, click + Endpoint to add an endpoint for the JDE_ORCH_CustomerSearch_CustomerEmail orchestration.
  43. In the Add Endpoint dialog box, complete these fields:
    • Method = Post
    • Path = /JDE_ORCH_CustomerSearch_CustomerEmail
    • Action Hint = Custom
  44. Click Add.
    Description of 10.png follows
    Add Endpoint
  45. In the Endpoints tab, click the newly created endpoint postJDE_ORCH_CustomerSearch_CustomerEmail.
  46. Navigate to the Request tab, Body.
  47. Enter the following sample request of the orchestration in the text area of the Body pane:
    {
      "Address_Number": "4242",
      "Co": "00200",
      "Sch_Typ": "C",
      "P03013_Version": "ZJDE0001",
      "Line_ID": "0"
    }
  48. Select application/json as the media type.
  49. Go to the Test tab, click Send. Wait for the status to be 200 OK. The response appears in the Body tab.
  50. Click Save as Example Response in the Body pane of the Response section.
    Description of 11.png follows
    Sample Response
  51. Go to the Endpoints tab, click + Endpoint to add an endpoint for the JDE_ORCH_CustomerSearch_CustomerPhoneNum orchestration.
  52. In the Add Endpoint dialog box, complete these fields:
    • Method = Post
    • Path = /JDE_ORCH_CustomerSearch_CustomerPhoneNum
    • Action Hint = Custom
  53. Click Add.
    Description of 12.png follows
    Add Endpoint
  54. In the Endpoints tab, click the newly created endpoint postJDE_ORCH_CustomerSearch_CustomerPhoneNum.
  55. Navigate to the Request tab, Body.
  56. Enter the following sample request of the orchestration in the text area of the Body pane:
    {
      "Address_Number": "4242",
      "Co": "00200",
      "Sch_Typ": "C",
      "P03013_Version": "ZJDE0001",
      "Line_ID": "0"
    }
  57. Select application/json as the media type.
  58. Go to the Test tab, click Send. Wait for the status to be 200 OK. The response appears in the Body tab.
  59. Click Save as Example Response in the Body pane of the Response section.
    Description of 13.png follows
    Sample Response
  60. Click the Servers tab and click Edit to update the AIS server details.
  61. Update the value in the Authentication field to None.