getItemInfo
FunctiongetItemInfo(id: string, requestOptions?: IGetItemInfoOptions): Promise<any>
import { getItemInfo } from "@esri/arcgis-rest-portal";
// get the "Info Card" for the item
getItemInfo("ae7")
.then(itemInfoXml) // XML document as a string
// or get the contents of a specific file
getItemInfo("ae7", { fileName: "form.json", readAs: "json", authentication })
.then(formJson) // JSON document as JSON
Get an info file for an item. See the REST Documentation for more information.
Parameters
Parameter | Type | Notes |
---|---|---|
id | string | Item Id |
request | IGetItemInfoOptions | Options for the request, including the file name which defaults to |
Returns
Promise<any>
A Promise that will resolve with the contents of the info file for the item.