Newer
Older
DevAndroid / app / src / main / java / keijumt / devandroid / api / PostalCodeApi.kt
package keijumt.devandroid.api

import io.reactivex.Single
import keijumt.devandroid.api.response.PostalCode
import retrofit2.http.GET
import retrofit2.http.Query

interface PostalCodeApi {

    @GET("search")
    fun getPostalCode(@Query("zipcode") zipcode: Int): Single<PostalCode>
}