Private factoryPrivate urlReturns an instance of the
Data
Executes a POST request for a single item.
Executes a POST request to add a related item to the property collection.
Executes a DELETE request to delete a single item.
Executes a DELETE request to retrieve the delete all of the associated members in the relation property.
Executes a DELETE request to retrieve the a single entry of the associated members in the relation property.
Executes a GET request to retrieve a collection of items.
Executes a GET request to retrieve an/all item(s) operations.
Executes a GET request to get the property of a single item.
Executes a GET request to get the related property value of a single item.
Executes a GET request to retrieve the related property value of a single item by the id of the related item.
Executes a GET request for a single item.
Executes a POST request to execute a workflow operation for single item.
Executes a PATCH request to update a single item.
const data = sf.data({
entitySet: "newsitems",
provider: "OpenAccessDataProvider",
culture: "en"
});
const newsItemUpdate = {
"Title": 'updated news title'
};
data.update({
key: '00000000-0000-0000-0000-000000000000', // key of item to update
data: newsItemUpdate,
saveTemp: true,
successCb: successCb,
failureCb: failureCb
});
Executes a POST request to upload a media item.
const data = sf.data({
entitySet: "images"
});
data.upload({
data: {
content: "base 64 representation of the file",
contentType: "image/jpeg",
name: "test.jpg",
payload: {
Title: "Test",
entitySet: "test"
},
uploadProperties: {
ParentId: "4BA7AD46-F29B-4E65-BE17-9BF7CE5BA1FB"
}
},
successCb: successCb,
failureCb: failureCb
});
Generated using TypeDoc
The constructor of the Data object. This object is used for requesting data from Sitefinity.