package nl.sense_os.service;

public class SenseUrls {

    public static final String BASE = "http://api.sense-os.nl/";
    public static final String DEV_BASE = "http://api.dev.sense-os.nl/";
    public static final String VERSION = "http://data.sense-os.nl/senseapp/version.php";

    public static final String FORMAT = ".json";

    public static final String DEVICES = BASE + "devices" + FORMAT;
    public static final String DEV_DEVICES = DEV_BASE + "devices" + FORMAT;

    public static final String SENSORS = BASE + "devices/<id>/sensors" + FORMAT;
    public static final String DEV_SENSORS = DEV_BASE + "devices/<id>/sensors" + FORMAT;

    public static final String ALL_SENSORS = BASE + "sensors" + FORMAT;
    public static final String DEV_ALL_SENSORS = DEV_BASE + "sensors" + FORMAT;

    public static final String SENSOR_DATA = BASE + "sensors/<id>/data" + FORMAT;
    public static final String DEV_SENSOR_DATA = DEV_BASE + "sensors/<id>/data" + FORMAT;

    public static final String SENSOR_FILE = BASE + "sensors/<id>/file" + FORMAT;
    public static final String DEV_SENSOR_FILE = DEV_BASE + "sensors/<id>/file" + FORMAT;

    public static final String CREATE_SENSOR = BASE + "sensors" + FORMAT;
    public static final String DEV_CREATE_SENSOR = DEV_BASE + "sensors" + FORMAT;

    public static final String ADD_SENSOR_TO_DEVICE = BASE + "sensors/<id>/device" + FORMAT;
    public static final String DEV_ADD_SENSOR_TO_DEVICE = DEV_BASE + "sensors/<id>/device" + FORMAT;

    public static final String LOGIN = BASE + "login" + FORMAT;
    public static final String DEV_LOGIN = DEV_BASE + "login" + FORMAT;

    public static final String REG = BASE + "users" + FORMAT;
    public static final String DEV_REG = DEV_BASE + "users" + FORMAT;

    private SenseUrls() {
        // private constructor to prevent instantiation
    }
}

@@ -92,24 +92,25 @@
 BASE = %22http
+s
 ://api.sense

use https url