getProductsByAdditive

@GET(value = "additive/{additive}/{page}.json")
abstract suspend fun getProductsByAdditive(    @Path(value = "additive") additive: String,     @Path(value = "page") page: Int,     @Query(value = "fields") fields: String): Search

call API service to return products using Additives

Parameters

additive

search query for products

page

number of pages


@GET(value = "additive/{Additive}.json")
abstract suspend fun getProductsByAdditive(@Path(value = "Additive") additive: String?, @Query(value = "fields") fields: String?): Search