Support Topics Documentation Slack YouTube Blog

Custom domain for data API


(Al Lee) #1

I followed the description available at here mgmt_custom_domain and mapping-a-domain-name-to-your-backendless-file-storage and did search a lot inside the forum for any clear hint if it’s possible or not to access API ( REST) with custom domain setup.
I’m using backendless REST API and would like to be able to access/update data tables from custom domain.

Method: GET [PUT, POST, ...]
 
https://MyCustomDomain/api/<application-id>/&lt;REST-api-key&gt;/data/&lt;table-name&gt;/&lt;object-id&gt;

What I get is the error “Action not found” with the html status code 404, Although the CNAME setup and mapping is correctly done.
My question is: Is it possible to access data tables from custom domain name with REST API?


(Anton Govorushkin) #2

Is your application in Backendless cloud? If yes please provide your application id. If not please send your custom domain to support@backendless.com or just share it here in the topic.

Regards Anton


(Al Lee) #3

Hello , Anton

Yes, it’s in cloud: App id is 2D4AB967-891A-3618-FF46-7FE166657400


(Anton Govorushkin) #4

We’re currently working on a fix related to custom domains. We’ll notify you here when it’ll be available

Regards Anton


(Al Lee) #5

Thanks Anton,
You mean, what I’m asking for will be ready in near future? Because I have to decide about my APP structure sooner, and if there is such hope, I can consider the availibity of the REST API from custom domain.


(Mark Piller) #6

Hi Al,

We have made a few changes and the custom domains should be working in the 4.0 environment. Could you please check and confirm?

Mark


(Al Lee) #7

Dear Mark,

Unfortunately, not still


(Mark Piller) #8

I just tried opening your domain in a browser and it worked just fine for me:

http://support.backendless.com/public/attachments/f97351191a9033f55dc0f4abf23de3c4.jpg</img>

f97351191a9033f55dc0f4abf23de3c4.jpg


(Al Lee) #9

Dear Mark,

The file access is Ok, but I need to access data tables in custom domain. I still receive “Action not found” error when trying this:

Method: GET
 

https://MyCustomDomain/api/<application-id>/&lt;REST-api-key&gt;/data/&lt;table-name&gt;/&lt;object-id&gt;

(Mark Piller) #10

Got it. Let us work some more on this.

Regards,
Mark


(Mark Piller) #11

Hi Al,

It has been fixed for the API calls as well. Please check and confirm.

Regards,
Mark


(Al Lee) #12

AMAZING !

You guys are great. What you’ve done is a real milestone. Thank you so much.

I see everything is working like a charm, however will also test other aspects (like permissions, roles, login, …) and will let you know.

Once again, thank you sincerely