Developer Portal - API client code snippet

Hi,

I have the following requirement. Please let me know if anyone has tried this.

Addition of API Client code snippet in Java/Python/Curl etc along with API Specs.

Will it be a customization in Smartdocs module ?

Does it have to be static content to be plugged in separately ?

3 2 801
2 REPLIES 2

@snehal chakraborty ,

Yes, It's a customization. You can do it using a couple of ways.

  • Static Content that goes inside Smartdocs template & control display using Javascript inside Smartdocs template code.
    • It's a maintenance nightmare
    • HTML & Javascript skills is enough.
  • Leverage Drupal SmartDocs Content Type Method, Add more text area fields for different snippets to Smartdocs content type method. Rewrite Template to change the layout, Use Drupal Views to auto generate views & display them using blocks on Smartdocs pages dynamically.
    • Easy to maintain
    • Need Drupal Knowledge.

Let me see if i can come up with detailed instructions to achieve same in next few days. No ETA though.

Hope it helps.

Thanks, detailed instructions will be of great help. Preferably the second option

We will also try out from our end.