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.

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

Minimum available methods for providers

  • Configuration

    • getConfig
    • getApplicationConfig
    • getFeatureFlags
    • getProvidersConfig
  • CMS

    • getRoutes
    • getPageLayout
    • getMenu
    • getDefaultTheme
  • OVP

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

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

    • login
    • registar
  • 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.