WhatsOpenService.kt 383 Bytes
Newer Older
Dylan Jones's avatar
Dylan Jones committed
1 2 3 4
package srct.whatsopen.util

import io.reactivex.Observable
import retrofit2.http.GET
5
import retrofit2.http.Headers
Dylan Jones's avatar
Dylan Jones committed
6 7 8
import srct.whatsopen.model.Facility

interface WhatsOpenService {
9 10
    // cache for 12 hours by default, allow 1 month stale
    @Headers("Cache-Control: public, max-age=43200, max-stale=2628003")
Dylan Jones's avatar
Dylan Jones committed
11 12 13
    @GET("facilities")
    fun getData(): Observable<List<Facility>>
}