Drupal Portal - Send this request not working

Hi @Dino-at-Google, @Sai Saran Vaidyanathan, @Jyothi K Reddy, @Karl Scheirer, @Kristin Brinner

Concern: Need to execute the service directly from the Drupal portal instead of using testing tools like postman or soapui, we were able to expose our swagger doc in the drupal for the consumers. However, it is just like a documentation purpose but not for testing.

Here is the link what I am referring to https://docs.apigee.com/api-platform/troubleshoot/devportal/developer-portal-troubleshooting-overvie...

not sure what url do I need to provide for SmartDocs proxy URL

Here is the screenshot of the error that I am getting.

9498-capture.png

Regards,

Ashwith

0 2 166
2 REPLIES 2

It seems your instance in on a private network. For allowing your smartdocs to communicate to your edge, you have to set proxy URL. It follows the pattern

<hostname>/smartdocs/v1/sendrequest

In most cases with on-prem install this URL can be seen under the smartdocs proxy URL field, under advanced settings of smartdoc configuration.

9500-smardoc.png

Let us know if it helped. Good luck!

Hello @Ashwith G

If you are a cloud user, SmartDocs proxy URL should be left with its default value.

If you are an on-premises user, you first need to install SmartDocs into Edge, and then set your proxy url. See docs at https://docs.apigee.com/private-cloud/v4.19.06/portal-installation#7installsmartdocsoptional.

If you're on-premises, generally your smartdocs proxy url will be https://[your-edge-domain.com]:[your edge port]/smartdocs/v1/sendrequest.

You can also check the javascript console, there might be a more specific error message there. While it probably is related to the proxy url / CORS, it's possible it could be something else.