com.uwetrottmann.trakt5.services.People Maven / Gradle / Ivy
package com.uwetrottmann.trakt5.services;
import com.uwetrottmann.trakt5.entities.Credits;
import com.uwetrottmann.trakt5.entities.Person;
import com.uwetrottmann.trakt5.enums.Extended;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
public interface People {
/**
* Returns a single person's details.
*
* @param personId trakt ID, trakt slug, or IMDB ID Example: bryan-cranston.
*/
@GET("people/{id}")
Call summary(
@Path("id") String personId,
@Query("extended") Extended extended
);
@GET("people/{id}/movies")
Call movieCredits(
@Path("id") String personId
);
@GET("people/{id}/shows")
Call showCredits(
@Path("id") String personId
);
}