diff --git a/app/src/main/java/keijumt/devandroid/api/PostalCodeApi.kt b/app/src/main/java/keijumt/devandroid/api/PostalCodeApi.kt new file mode 100644 index 0000000..1a2a141 --- /dev/null +++ b/app/src/main/java/keijumt/devandroid/api/PostalCodeApi.kt @@ -0,0 +1,12 @@ +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 +} \ No newline at end of file