Demo Server API

GarrettDebski8 years ago

Is the api available to work with the demo server? I am not able to get any response from the path where the documentation says it is available at. http://traccar.org/api

Anton Tananaev8 years ago

Where did get that URL from? Correct one is

http://demo.traccar.org/api

GarrettDebski8 years ago
Anton Tananaev8 years ago

It doesn't say anywhere that it's host name for demo server.

Anton Tananaev8 years ago

In fact there are 3 demo servers and they all have different domain names. Which one are you using?

andsdoug8 years ago

Hello, how can i allow my traccar server to recieve RestApi commands from only one IP adrress and block all other receivers. I don't like to receive restapi commands for any places.

Anton Tananaev8 years ago

If you allow API requests only from one IP address, the web interface would be available only on that IP address. If that's what you want, it should be easy to configure in firewall.

andsdoug8 years ago

Anton

I could bronken this issue in two parts.

1 - The web interface will be available to all IP address and
2- API requests only from one IP address.

I would like block someone trying create adminuser using rest api from internet. Once to send this command is not necessary any previous autorization.

Is it possivel change API request port?

Anderson

Anton Tananaev8 years ago

Web interface uses same REST API, so what you are asking doesn't make any sense.

abyss8 years ago

Like an idea, use intermediate web server (like apache or ngix) to proxy connection to traccar and filter/not proxy some requests.

Anton Tananaev8 years ago

I guess that's possible. You can filter some requests by URL if you want.

What about just disabling those requests for non-admin users? It's a one line of code and you don't need to worry about IP addresses.