Can we add snippets of code in different languages to API in Apigee Developer Portal

Hello Team,

Is there any possibility to add different language code snippets for an API to test in Apigee Beta Developer Portal?

0 4 290
4 REPLIES 4

Hi @sravani Ganapam, if I understand you correctly, you want to provide sample snippets of code for your customers who will be consuming your APIs and you are using the integrated developer portal? Is my understanding correct? If so, then yes, you can do this. I would recommend creating a separate page for the Code snippets. You can use the “pre” and “code” tag like this:

<pre><code>

Put code here...

</code></pre>

capture.png

I want to provide different code snippets in developer portal like .NET, JAVA, Python, C#. Is it possible?

In the attached screen shot curl is available similarly I want to add the mentioned languages in beta version.

Robert,

can you please share sample or article to follow to do this. 

Here is an example of using `code snippets` in the Integrated Portal: https://amer-demo30-demoportal.apigee.io/code-snippet

There are links on how to do this on the same page.