getModel

Function

Gets the full item/data model for an item id

  • getModel(id: string, requestOptions: IRequestOptions) : Promise<IModel>

Parameters

Parameter Type Default Notes
id Required string
requestOptions Required IRequestOptions

Available requestOptions

Property Type Notes

Returns

Promise<IModel>
Property Type Notes
item IItem
data Optional [key: string]: any
resources Optional [key: string]: any

Function defined in common/src/models/index.ts:30