getItem

Function

import { getItem } from "@esri/arcgis-rest-items";
//
getItem("ae7")
  .then(response);
// or
getItem("ae7", { authentication })
  .then(response)

Get an item by id. See the REST Documentation for more information.

Parameters

Parameter Type Default Notes
id Required string

Item Id

requestOptions Optional IRequestOptions

Options for the request

Returns

Promise<IItem> - A Promise that will resolve with the data from the response.


Function defined in packages/arcgis-rest-items/src/get.ts:34