Skip to main content

Providers

src/providers

Under the provider's folder, the developers will find the different implementations for retrieving data from the internet. All the API implementation for our fetching data libraries will be placed here.
Implementations for the APIs of Content Management System(s) (CMS) implementations, Online Video Platform (OVP), and any other 3rd party library our application needs.

Assemble needs a CMS and an OVP implementation. These two implementations are mandatory for the application to run. Each one should expose different methods to the application, and these methods will be tested. If a CMS or OVP API implementation does not pass the test, the application will not work.

Minimum available methods for providers

  • Configuration

    • getConfig
    • getApplicationConfig
    • getFeatureFlags
    • getProvidersConfig
  • CMS

    • getRoutes
    • getPageLayout
    • getMenu
  • OVP

    • getTrends
    • search
    • getMovies
    • getMovie
    • getShow
    • getShows
    • getSeasons
    • getSeasonEpisodes
    • getCategories
    • getLiveChannels
    • getPrograms
    • getProgram
    • fetch
  • i18n

    • init
    • getLocales
    • getTranslation
    • updateLanguage
    • getDir
  • idP

    • login
    • register
  • Profile

    • getBookmarks
  • Analytics

    • log
  • Entitlement

    • isEntitled

The providers API implementation does not have to care about treating data. The parsing and model of the data will be done in the different models defined for data.