I have developed a backend using Google App engine and Endpoints API. One of Api Method is a job that should run every X hours and do some logical stuff.
my Question is how can I call this api method using Cron Job.
I know the URL of the Api Method and i even succeed call her using the browser. but when I try call it with the cron job, the job was failed with 404 error code.
here the cron.xml:
<?xml version="1.0" encoding="UTF-8"?>
<cronentries>
<cron>
<url>/_ah/api/meetingMatchingEndpoint/v1/matchingProcess</url>
<description>Matching process</description>
<schedule>every 1 minutes</schedule>
</cron>
</cronentries>
when I try call it from the browser and succeed I wrote the full URL:
https://acadden-motif-344.appspot.com/_ah/api/meetingMatchingEndpoint/v1/matchingProcess