This is an old revision of the document!
CoovaChilli JSON Interface
Introduction
If CoovaChilli is compiled with JSON support it exposes a JSON interface on the controller.
This document will discuss the technical workings of the JSON interface.
In order to have access to the JSON interface you have to be on the same network served by CoovaChilli, this means you have to be connected to the hotspot in plain english.
Accessing the JSON interface
The JSON interface is served from the UAMLISTEN IP Address which is typically 10.1.0.1
It has a standard interface (HTTP) on UAMPORT which is typicallly 3990
If Coova is configured to also support HTTPS in the UAM, the HTTPS access will be on the UAMUIPORT which is typically port 4990.
Each of the endpoints can then be reached by appending /json/ and the end point name .
For HTTP a typical
URL will look like this
For HTTPS a typical
URL will look like this
Specifying a Callback
In order to allow cross site functionality the JSON interface also allows for you to include a value for the callback
Simply include callback and the required value for it in the query string of the endpoint call.
-
The reply will then be wrapped inside the value of callback
jQuery33105641008201093548_1612410177983({"versio......28-D2-44-20-04-8D"}})
The JSON interface methods
We will now unpack each of these endpoints in their own dedicated session
status
logon
llogoff