apigee / apigee-api-catalog-drupal

Manage your API catalog within Drupal's content management approach
https://www.drupal.org/project/apigee_api_catalog
GNU General Public License v2.0
17 stars 16 forks source link

Sample request body in "Try this API" API Documentation section not getting auto-populated #146

Open zycon opened 2 years ago

zycon commented 2 years ago

Request body in "Try this API" API documentation page is not auto-populating the sample record objects. Its working only when user types something, but not while clicking the "+" icon. image

Steps to Reproduce

Steps to reproduce the behavior:

  1. Go to any Product API Swagger spec page
  2. Goto "Try this API Section"
  3. Click on "+" icon,

Actual Behavior

Nothing happening, and an error in browser console image

Expected Behavior

Object needs to be populated as in swagger spec

Version Info

PHP 7.4.26 Drupal core 9.3.0 Apigee Edge 2.0.1 Apigee API Catalog 8.x-2.6

phdhiren commented 2 years ago

@zycon

The current UI formatter used is Smartdocs. I acknowledge the issue in that, However do not have ETA to fix this.

You can checkout other third party UI formatter for the field such as Swagger UI https://www.drupal.org/project/swagger_ui_formatter