JSONAPIXtreamMovieListing: {
    type: "movie";
    id: string;
    attributes: {
        name: string;
        plot: string | null;
        voteAverage: number;
        poster: string;
        releaseDate: Date | null;
        duration: number;
        cast: string[] | [];
        director: string[] | [];
        youtubeId: string | null;
        genre: string[] | [];
        createdAt: Date;
        url?: string;
    };
    relationships?: {
        categories?: { data: { type: "movie-category"; id: string }[] };
    };
}

JSON:API Xtream movie listing

This type represents a movie in the Xtream system in JSON:API format

Type declaration

  • type: "movie"

    The resource type (movie)

  • id: string

    The unique identifier for the movie

  • attributes: {
        name: string;
        plot: string | null;
        voteAverage: number;
        poster: string;
        releaseDate: Date | null;
        duration: number;
        cast: string[] | [];
        director: string[] | [];
        youtubeId: string | null;
        genre: string[] | [];
        createdAt: Date;
        url?: string;
    }

    The movie attributes

    • name: string

      The title of the movie

    • plot: string | null

      The synopsis/description of the movie

    • voteAverage: number

      The movie's rating

    • poster: string

      The URL for the movie's poster

    • releaseDate: Date | null

      The release date of the movie

    • duration: number

      The runtime of the movie in seconds

    • cast: string[] | []

      The cast of the movie as an array

    • director: string[] | []

      The director(s) of the movie as an array

    • youtubeId: string | null

      The youtube id of the trailer

    • genre: string[] | []

      The genres of the movie as an array

    • createdAt: Date

      The date when the movie was added to the system

    • Optionalurl?: string

      URL to access the stream

  • Optionalrelationships?: { categories?: { data: { type: "movie-category"; id: string }[] } }

    The movie relationships

    • Optionalcategories?: { data: { type: "movie-category"; id: string }[] }

      The categories relationship if applicable