Input for POST operation
Operation for POST request
Send a POST request
import { post, isCancelError } from '@aws-amplify/api';
const { body } = await post({
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();
POST HTTP request