I have a proxy in apigee.I want that proxy to call itself every 1 minute. Can anyone help me with simple policy/javascript policy so that it calls itself every 1 minute?
Why does google has no auto call function?
It is not a good practice to call API Proxy continuously from same proxy or from different proxy in Apigee. Doing so you may bring down Server if you are dealing with large data.
However, you can do outside of Apigee by running Jenkins job which calls your proxy every minute or creating a unix or batch script and run it as a corn job.
Shell script: On unix create a test.sh file and add curl command and any other instructions you want. Follow below article for more details on curl.
https://www.thegeekstuff.com/2012/04/curl-examples/?utm_source=feedburner
Now, Schedule it using corn job. below post describes how to do it.
https://askubuntu.com/questions/852070/automatically-run-a-command-every-5-minutes/852074
Thanks