最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

catalystbyzoho - How to enable API gateway in local testing? - Stack Overflow

programmeradmin3浏览0评论

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 badges
Add a comment  | 

2 Answers 2

Reset to default 0

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.

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 →

发布评论

评论列表(0)

  1. 暂无评论