mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
6e0ef669be
Required for REST URLs which require data to be populated on call. For example, PUT admin/campaigns/set/:id/publish to publish a campaign. At the time when createEndpointFetcher() is called, the ":id" parameter can not be resolved, since the "data" argument is passed in once the returned function is evaluated (since the component using it). Since the whole idea of createEndpointFetcher() is that components shouldn't know about the backend internals, its not the right place to interpolate urls. I'm sending through any payload data in addition to replacing URLs, to keep the API simple for the component. Again, it shouldn't worry about the presence URL interpolation. The trade off here is that data will be submitted both in the payload (in case of a POST, PUT or DELETE request), as well as (optionally) in the URL. |
||
---|---|---|
.. | ||
bundle-framework.js | ||
bundle-leftandmain.js | ||
bundle-legacy.js | ||
bundle-lib.js | ||
CMSSecurity.js | ||
config.js | ||
leaktools.js | ||
LeftAndMain.js | ||
LeftAndMain.Ping.js | ||
MemberDatetimeOptionsetField.js | ||
MemberImportForm.js | ||
ModelAdmin.js | ||
reducer-register.js | ||
router.js | ||
SecurityAdmin.js | ||
silverstripe-backend.js | ||
silverstripe-component.js | ||
SilverStripeComponent.js | ||
sspath.js | ||
ssui.core.js |