Forum Discussion

Srikanth_Reddy's avatar
Srikanth_Reddy
Contributor
3 years ago

REST Endpoint creation on Khoros platform

how can we create a new rest endpoint on khoros platform, which we can test from the outside like the postman tool? 

6 Replies

  • Srikanth_Reddy's avatar
    Srikanth_Reddy
    Contributor
    3 years ago

    Yes, I have already gone through the given URL. 

     As mentioned on that page, I have created an endpoint in the studio and it is having a link for that created endpoint. 

    But how can I access this endpoint from postman? 

    while trying to test with generated URL, it is giving an error. 

  • cblown's avatar
    cblown
    Boss
    3 years ago

    Perhaps you need to whitelist the calling domain as mentioned in this thread.

    It could be that you have not whitelisted the HTTP client domain.

    You have to whitelist the caller domain for the http client here:
    ADMIN DASHBOARD > SYSTEM > HTTP Client

    Here you will find an input field called "Allowed domain names", where you can enter the http client domain.

  • AdamN's avatar
    AdamN
    Khoros Oracle
    3 years ago

    Srikanth_Reddy If you're testing against stage, you could be running into htaccess / Basic Authentication restrictions. This article talks about how to add the basic auth username and password to the request: https://learning.postman.com/docs/sending-requests/authorization/#basic-auth

    If that doesn't solve your problem, can you share more details about the error you're seeing? The HTTP response code and response message may help to give some clues as to where the problem lies.

  • Srikanth_Reddy's avatar
    Srikanth_Reddy
    Contributor
    3 years ago

    Hi , 

     

    I tried with same Basic Auth method by providing the proper user name and password. 

    From the postman, it is giving an error like "could not get response " error. 

     

    I have added an attachment for reference. 

     

    Thanks

  • AdamN's avatar
    AdamN
    Khoros Oracle
    3 years ago

    Srikanth_Reddy Based on the error in the screenshot, it looks like a SSL/cert issue. I think you have a couple options:

    1. Recommended: Work with Khoros to setup a CNAME for your instance and have an SSL cert provisioned and configured for your hostname. If you're engaged in a Professional Services project already, please flag this for your project team. Otherwise, you can open up a ticket with Khoros Support and ask them for help setting up the CNAME and SSL for the environment. You'll need to work with your DNS team to create the CNAME record, and the Khoros team can help take care of the rest.
    2. Alternate: If you just need to test something quickly, you can work around the issue in Postman by updating your CA Certs configuration in Postman to include the CA used by the Khoros certificate (currently "Amazon Root CA 1"). More information here: https://blog.postman.com/encryption-ssl-tls-and-managing-your-certificates-in-postman/