Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

APIDOC - Remove Sample Request

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

like image 842
Pedro Oliveira Avatar asked Sep 19 '25 10:09

Pedro Oliveira


1 Answers

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.

like image 196
Lukas Heiligenbrunner Avatar answered Sep 23 '25 04:09

Lukas Heiligenbrunner