diff --git a/app/src/main/java/es/verdnatura/domain/SalixService.kt b/app/src/main/java/es/verdnatura/domain/SalixService.kt index c29b7966..0d1a4ca5 100644 --- a/app/src/main/java/es/verdnatura/domain/SalixService.kt +++ b/app/src/main/java/es/verdnatura/domain/SalixService.kt @@ -68,8 +68,9 @@ interface SalixService { fun getCollectionSalix( ): Call> - @GET("Addresses/getAddress") + @GET("AddressShortages") fun getAddressSalix( + @Query("filter") filter:String ): Call> @GET("Buyers") @@ -195,7 +196,7 @@ interface SalixService { @POST("Shelvings/upsertWithWhere") fun updateShelvingPriority( - @Query("where") where: String, + @Query("where") where: Any, @Body params: Any ): Call @@ -289,7 +290,7 @@ interface SalixService { @Multipart fun uploadImage( @Query("collection") collection: String, - @Query("id") id: Int, + @Query("id") id: Number, @Part filePart: MultipartBody.Part, ): Call @@ -299,10 +300,11 @@ interface SalixService { @Path("id") id: Number, @Body params: Any ): Call - @GET("Operators") + @GET("Operators/{id}") fun operator_getData( - @Query("filter") filter: String - ): Call> + @Path("id") id: Number, + @Query("filter") filter:String + ): Call @GET("AccessTokenConfigs") fun getAccessTokenConfigs(