Android - retrofit 2.9.0
I have the following retrofit method. I am using the @Url to include the base url and the path to search for products. However, I need to pass a code as part of the path. As I need to include the fullpath how can I add the code into the full url path?
"https://myBaseUrl/v2/products/{code}/search"
@GET
fun searchProductV2(
@Path("code") storeCode: String,
@Url fullPath: String = "https://myBaseUrl/v2/products/{code}/search",
@Query("searchCriteria[pageSize]") pageSize: String,
@QueryMap apiSearchCriteria: Map<String, String>,
@HeaderMap headerMap: Map<String, String> = emptyMap()
): Single<Products>
from Update @url path with different path parameters
No comments:
Post a Comment