Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PoiTypeRepositoryInterface

The PoiTypeRepository retreives PoiTypes from the database through the REST API.

A full list of PoiTypes can be fetched by calling findAll and a specific PoiType by calling findOne.

Hierarchy

Index

Methods

create

filter

findAll

  • Gets all repository items. The cached data will be returned if the data has been fetched before. Using the forceFetch parameter, a user can order a fresh copy to be fetched from the server.

    Parameters

    • Optional forceFetch: boolean

      Flag whether to force a server request or not. False by default.

    Returns Promise<PoiTypeInterface[]>

    Array of resources.

findOne

  • Gets one repository item by id. The cached data will be returned if the data has been fetched before. Using the forceFetch parameter, a user can order a fresh copy to be fetched from the server. In case a new record is fetched, the data will be updated accordingly.

    Parameters

    • id: number
    • Optional forceFetch: boolean

      False by default.

    Returns Promise<PoiTypeInterface>

remove

save

Generated using TypeDoc