Open Rafelcf opened 3 years ago
hi @Rafelcf , thanks for your comment. If you receive an array, just you need to change on the retrofit interface
for example :
interface ServicesApiInterface { @GET("/api/museums/") fun museums(): Call<List<Museum>> }
I would like to know how the MainActivity and the ViewModel are made, if the Json is an array? Thank you