APIDOC - Remove Sample Request

1k Views Asked by At

Hey there I'm trying to remove/hide the sample request form from my apiDoc. I'm not using the sampleUrl tag on my package.json config, on the api_porject.json this property is set to false. But still, on every request that there's the sample request. I've also tried to apply the param @apiSampleRequest off to my codeblocks but no luck. Any suggestions?

enter image description here

2

There are 2 best solutions below

1
On

In my case setting "sampleUrl": null in the config did the trick to disable the form globally without a @apiSampleRequest off comment.

If you want to disable only some of the forms you can use "sampleUrl": true and set @apiSampleRequest off where you want to disable the form.

0
On

remove this line @apiSampleRequest from each api function and run cmd -

apidoc -i /yourfolderpath -o /yourfolderpath_apidoc