To test your API rules in local environment first you would need to enable them in your Catalyst CLI using the below command
catalyst apig:enable
Once enabled, all your default URL will be inaccessible in your local environment. To access your application and function URL you would need to pull the APIG rules from the Catalyst Console using the below command
catalyst pull:apig
You can check the official documentation here.