I have created a Zoho Catalyst Application and created custom API endpoint routes using API Gateway in order to secure my app routes. The application works perfectly when testing from development environment, I can load my application properly using my custom routes.
But since my application requires constant updates and many new API routes I can't keep deploying my application each time. I wish to test my new routes in my local machine.
I tried enabling and disabling the API Gateway from the Catalyst Console but it doesn't affect any changes when I am testing my application in local environment, which leads me to believe we need to enable them in local in a different way. Can someone help me with that?
Attaching relevant screenshots from both development and local environment where I tested the same API custom endpoint.
API Gateway endpoints
Development Environment
Local Environment
I have created a Zoho Catalyst Application and created custom API endpoint routes using API Gateway in order to secure my app routes. The application works perfectly when testing from development environment, I can load my application properly using my custom routes.
But since my application requires constant updates and many new API routes I can't keep deploying my application each time. I wish to test my new routes in my local machine.
I tried enabling and disabling the API Gateway from the Catalyst Console but it doesn't affect any changes when I am testing my application in local environment, which leads me to believe we need to enable them in local in a different way. Can someone help me with that?
Attaching relevant screenshots from both development and local environment where I tested the same API custom endpoint.
API Gateway endpoints
Development Environment
Local Environment
Share Improve this question asked Feb 5 at 10:55 Johnnathan KennedyJohnnathan Kennedy 12 bronze badges2 Answers
Reset to default 0To 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.
Yes, you can pull the API Gateway Rules to local using Catalyst CLI. After enabling the APIG in Catalyst console, we can pull the rules as JSON file in local, test and deploy it. Read more →