package com.khmelenko.lab.sensorsclient.network;

import com.khmelenko.lab.sensorsclient.network.response.Device;
import com.khmelenko.lab.sensorsclient.network.response.WeatherData;

import java.util.List;

import retrofit.http.GET;
import rx.Observable;

/**
 * API Service
 *
 * @author Dmytro Khmelenko
 */
public interface ApiService {

    @GET("/devices")
    Observable<List<Device>> getDevices();

    @GET("/devices/{name}/current")
    Observable<Device> getCurrentData();

    @GET("/devices/{name}/history")
    Observable<List<WeatherData>> getHistory();

}

@@ -451,22 +451,27 @@
 ervable%3C
-Device
+WeatherData
 %3E getCur

Update API usage in client app