How to get the api method link

Hellom

When writing business logic, where can I find the link to my method?

I tried:

and got action not found.

I tried:
https://api.backendless.com/v1/services/MyServiceName/0.0.0/MyMethodName/application-id/MyApplicationId/secret-key/MySecretKey?params

and got 401

cheers,
Tal

Hi Tal,

Please see the documentation (look for “REST Request URL”):
https://backendless.com/documentation/api-engine/apieng_api_inspector.htm

Regards,
Mark

I see,

now the problem I have is that there are mandatory header fields, without them I get:
{“code”:2002,“message”:“Version is disabled or provided wrong application info (application id or secret key)”}
but the ad networks that will use this callback only receive a simple URL.
is there any workaround for this on your side?

The headers are mandatory, that’s how the backend knows that it is your service that should be targeted.

You could create an intermediary endpoint somewhere (off of Backendless) and direct the ad networks there.

I createed an intermediary endpoint that does the redirect, now,
How can I receive external calls to my server api method from an external source that is not the console?
I tried using both the address that was written in the console:
https://api.backendless.com/v1/services/ServiceName/0.0.0/MEthodName

and the one that appears when I uncheck “internal only”:
https://api.backendless.com/console/appId/AF8A6FD1-7119-6D55-FF83-BC9AA0072B00/appversion/B2BCD503-D4FE-5DA7-FF97-163DF405C400/localservices/B672D784-EC37-F38F-FF31-871EEE038F00/api-docs.json

and got errors.
I am thinking maybe I just cannot reach the url from an outside source?..
my service is running through codeRunner.

A request that console makes is a standard REST request. If you use the REST Request URL I described earlier in this thread, it will work. It is important though that the all the required headers are included into the request as well.