To disable caching while testing your JSON:API endpoints you should put this into your settings.php
$settings['cache']['bins']['dynamic_page_cache'] = 'cache.backend.null';
but for this to work, you need to define this service null, which should be added as