getItemMetadata
FunctiongetItemMetadata(id: string, requestOptions?: IRequestOptions): Promise<any>
import { getItemMetadata } from "@esri/arcgis-rest-portal";
// get the metadata for the item
getItemMetadata("ae7")
.then(itemMetadataXml) // XML document as a string
// or with additional request options
getItemMetadata("ae7", { authentication })
.then(itemMetadataXml) // XML document as a string
Get the standard formal metadata XML file for an item (/info/metadata/metadata.xml
)
Parameters
Parameter | Type | Notes |
---|---|---|
id | string | Item Id |
request | IRequestOptions | Options for the request |
Returns
Promise<any>
A Promise that will resolve with the contents of the metadata file for the item as a string.