Slide 27
Slide 27 text
RALPH WHITBECK
REQUEST DEFINITION
//typically
used
for
ajax
requests
amplify.request.define(
resourceId,
type,
[
settings
]
);
amplify.request.define(
"customers.list",
"ajax",
{
url:
"/customers/",
dataType:
"json"
});
amplify.request.define(
"customers.update",
"ajax",
{
url:
"/customers/{id}",
dataType:
"json",
method:
"POST"
});