Input for GET operation
Operation for GET request
Send a GET request
import { get, isCancelError } from '@aws-amplify/api';
const { body } = await get({
apiName,
path,
options: {
headers, // Optional, A map of custom header key/values
body, // Optional, JSON object or FormData
queryParams, // Optional, A map of query strings
}
}).response;
const data = await body.json();
GET HTTP request