You need to retrieve a list of photos from an API. Which code snippet defines an HTML GET request in Retrofit?

  • @GET(“photo/{id}”} fun listPhotos(@Path(“id”) id:Long?) : Call
  • @LIST(“photo”) fun listPhotos() : Call<List>
  • @GET(“photo”) fun listPhotos() : Call
  • @GET(“photo”) fun listPhotos() : Call<List>
Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Leave a Comment

Join our list

Subscribe to our mailing list and get interesting stuff and updates to your email inbox.

Thank you for subscribing.

Something went wrong.

Send this to a friend