OINO TS
    Preparing search index...

    Class OINONoSqlApi

    REST API for NoSQL table storage.

    Supports the following HTTP methods:

    • GET without id – lists all entities and returns metadata as JSON.
    • GET with id – returns a single entity.
    • POST / PUT with id – upserts an entity; body must be a JSON object with a properties key containing the custom entity properties.
    • DELETE with id – deletes the named entity.

    The URL row ID format uses OINOConfig.OINO_ID_SEPARATOR to join the primary key field values, matching the number and order of primary key fields in the data model (same _OINOID_ convention as OINODbApi).

    Hierarchy

    • unknown
      • OINONoSqlApi
    Index

    Constructors

    • Constructor.

      NOTE: initializeDatamodel (or OINONoSqlFactory.createApi) must be called before the first request is dispatched.

      Parameters

      • noSql: OINONoSql

        nosql storage backend

      • params: OINOApiParams

        API parameters

      Returns OINONoSqlApi

    Properties

    noSql: OINONoSql

    NoSQL storage backend

    noSqlDatamodel: OINONoSqlDataModel = null

    NoSQL-specific data model (populated by initializeDatamodel)

    Methods

    • Parameters

      • request: OINOApiRequest

      Returns Promise<OINOApiResult>

    • Parameters

      • request: OINOApiRequest

      Returns Promise<OINOApiResult>

    • Parameters

      • method: string
      • rowId: string
      • rowData: OINOApiData
      • OptionalqueryParams: OINOQueryParams

      Returns Promise<OINOApiResult>

    • Parameters

      • request: OINOHttpRequest
      • rowId: string
      • rowData: OINOApiData
      • queryParams: OINOQueryParams

      Returns Promise<OINOApiResult>

    • Parameters

      • method: string
      • rowId: string
      • rowData: OINOApiData
      • queryParams: OINOQueryParams
      • contentType: OINOContentType = OINOContentType.json

      Returns Promise<OINOApiResult>