OINO TS
    Preparing search index...

    Class OINOBlobApi

    REST API for blob storage.

    Supports two GET variants:

    • GET without id – lists all blobs under the configured prefix and returns the metadata as JSON (or CSV) using OINOModelSet.
    • GET with id – downloads the named blob as a binary HTTP response with the blob's own Content-Type.

    All other HTTP methods return 405 Method Not Allowed.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    blob: OINOBlob

    Blob storage backend

    blobDatamodel: OINOBlobDataModel = null

    Blob-specific data model (populated by initializeDatamodel)

    datamodel: OINODataModel = null

    API datamodel

    datasource: OINODataSource

    API database reference

    hashid: OINOHashid

    API hashid

    initialized: boolean = false

    Is API initialized

    API parameters

    Methods

    • Method for handling a HTTP REST request with GET, POST, PUT, DELETE corresponding to SQL select, insert, update and delete.

      Parameters

      • method: string

        HTTP method of the REST request

      • rowId: string

        URL id of the REST request

      • rowData: OINOApiData

        HTTP body data as either serialized string or unserialized JS object or OINODataRow-array or Buffer/Uint8Array binary data

      • queryParams: OINOQueryParams

        SQL parameters for the REST request

      • contentType: OINOContentType = OINOContentType.json

        content type of the HTTP body data, default is JSON

      Returns Promise<OINOBlobApiResult>

    • Method to check if a field is included in the API params.

      Parameters

      • fieldName: string

        name of the field

      Returns boolean

    • Enable or disable debug output on errors.

      Parameters

      • debugOnError: boolean

        true to enable debug output on errors, false to disable

      Returns void