API portal: creating Json from form

Not applicable

A form has been created in the API portal page and has multiple fields inputs form.jpg.

Want to send a Json object in the input message just like the Swagger editor which takes the JSON data in input parameters and sends the input message to the server in json format.

Currently only getting a form based output using the standard features and need to create the JSON output. Is there any guide that explains the steps.

0 1 287
1 REPLY 1

apigee documentation for manually creating SmartDocs is available Here.

You can add an Object Type variable in SmartDocs form to have a text box that will accept your json object. In Body Mime Type you'll be adding "application/json".


Please see attached sample:

4426-bodyparameter.png

4425-bodymimetype.png