Options
All
  • Public
  • Public/Protected
  • All
Menu

Controller: dataClass | POST | /api/dataModels/${dataModelId}/dataClasses/${dataClassId}/dataClasses | Action: save | GET | /api/dataModels/${dataModelId}/dataClasses/${dataClassId}/dataClasses | Action: index | GET | /api/dataModels/${dataModelId}/dataClasses/${dataClassId}/search | Action: search | POST | /api/dataModels/${dataModelId}/dataClasses/${dataClassId}/search | Action: search | GET | /api/dataModels/${dataModelId}/dataClasses/${dataClassId}/content | Action: content | DELETE | /api/dataModels/${dataModelId}/dataClasses/${dataClassId}/dataClasses/${id} | Action: delete | PUT | /api/dataModels/${dataModelId}/dataClasses/${dataClassId}/dataClasses/${id} | Action: update | GET | /api/dataModels/${dataModelId}/dataClasses/${dataClassId}/dataClasses/${id} | Action: show | POST | /api/dataModels/${dataModelId}/dataClasses/${dataClassId}/dataClasses/${otherDataModelId}/${otherDataClassId} | Action: copyDataClass | POST | /api/dataModels/${dataModelId}/dataClasses | Action: save | GET | /api/dataModels/${dataModelId}/dataClasses | Action: index | GET | /api/dataModels/${dataModelId}/allDataClasses | Action: all | DELETE | /api/dataModels/${dataModelId}/dataClasses/${id} | Action: delete | PUT | /api/dataModels/${dataModelId}/dataClasses/${id} | Action: update | GET | /api/dataModels/${dataModelId}/dataClasses/${id} | Action: show | POST | /api/dataModels/${dataModelId}/dataClasses/${otherDataModelId}/${otherDataClassId} | Action: copyDataClass

Hierarchy

Index

Constructors

constructor

Properties

Protected apiEndpoint

apiEndpoint: string

Stores the base API endpoint for all REST requests.

Protected defaultRequestOptions

defaultRequestOptions: IMdmDefaultHttpRequestOptions

Stores the default options to apply to every REST request.

Methods

addChildDataClass

  • addChildDataClass(dataModelId: string, dataClassId: string, data: any, restHandlerOptions?: IMdmRestHandlerOptions): any

all

content

copyChildDataClass

  • copyChildDataClass(dataModelId: string, dataClassId: string, otherDataModelId: string, otherDataClassId: string, data: any, restHandlerOptions?: IMdmRestHandlerOptions): any

copyDataClass

  • copyDataClass(dataModelId: string, otherDataModelId: string, otherDataClassId: string, data: any, restHandlerOptions?: IMdmRestHandlerOptions): any

Protected generateQueryString

  • Generate a query string for a URL based on object property values provided.

    Parameters

    • queryStringParams: IMdmQueryStringParams = ...

      A query string parameters object to convert to a string.

    Returns string

    A URL encoded string containing each parameter and value, or an empty string if no properties were provided.

get

getChildDataClass

Protected isGuid

  • isGuid(value: any): boolean
  • Test if a string represents a UUID.

    Parameters

    • value: any

      The string to test.

    Returns boolean

    True if value represents a UUID.

list

listChildDataClasses

remove

removeChildDataClass

save

search

simpleDelete

simpleGet

simplePost

  • Send a HTTP POST request to the given resource.

    Parameters

    • url: string

      The full URL to the REST resource.

    • data: any

      The data to include in the POST request body.

    • Optional options: IMdmRestHandlerOptions

      Optional REST handler options, if required.

    Returns any

    The result of the POST request.

simplePut

  • Send a HTTP PUT request to the given resource.

    Parameters

    • url: string

      The full URL to the REST resource.

    • data: any

      The data to include in the PUT request body.

    • Optional options: IMdmRestHandlerOptions

      Optional REST handler options, if required.

    Returns any

    The result of the PUT request.

simpleRequest

  • Send a generic HTTP request to the given resource.

    Parameters

    • url: string

      The full URL to the REST resource.

    • queryStringParams: IMdmQueryStringParams = ...

      Optional query string parameters, if required.

    • Optional options: IMdmRestHandlerOptions

      Optional REST handler options, if required.

    Returns any

    The result of the request.

    All details of HTTP request must be included in the options parameter, particularly the HTTP method:

    simpleRequest('http://localhost/api/test', { }, { method: 'GET' });
    

update

  • update(dataModelId: string, dataClassId: string, data: any, restHandlerOptions?: IMdmRestHandlerOptions): any

updateChildDataClass

  • updateChildDataClass(dataModelId: string, dataClassId: string, childDataClassId: string, data: any, restHandlerOptions?: IMdmRestHandlerOptions): any

Generated using TypeDoc