Default value in smartdocs is not passed to the API

Not applicable

Hi,

I have a SmartDocs page for my API, but its response is quite big for a webbrowser. Therefore I have created a limit parameter in my API, and I want it to set at a default value of 10 for my smartdocs page.

I do see the default value in the documentation, but the value is more like a placeholder and not like a default value, since it is not passed to the API call at all..

Is there any solution for this? And I only want this to happen in my smartdocs, I dont want to add a default limit of 10 for my API call.

Thank you!

Solved Solved
0 1 101
1 ACCEPTED SOLUTION

Not applicable

I fixed it by uploading a custom template file, where I changed:

{{#if required}} <input name="{{name}}" type="text" data-role="value" value="{{defaultValue}}"/> {{else}} <input name="{{name}}" type="text" data-role="value" value="{{defaultValue}}"/> {{/if}}

in the query parameters section.

View solution in original post

1 REPLY 1

Not applicable

I fixed it by uploading a custom template file, where I changed:

{{#if required}} <input name="{{name}}" type="text" data-role="value" value="{{defaultValue}}"/> {{else}} <input name="{{name}}" type="text" data-role="value" value="{{defaultValue}}"/> {{/if}}

in the query parameters section.