Combined allURL and byKeyURL patch#150
Closed
statler wants to merge 8 commits intoDevExpress:masterfrom
statler:allURLpatch
Closed
Combined allURL and byKeyURL patch#150statler wants to merge 8 commits intoDevExpress:masterfrom statler:allURLpatch
statler wants to merge 8 commits intoDevExpress:masterfrom
statler:allURLpatch
Conversation
Added byKeyURL. Enables the user to specify the URL to use when fetching using the /api/controller/id or similar pattern. E.g. using a store productStore and specifying byKeyURL as http://example.com/api/product, a call to productStore.byKey(5) will yield a request; http://example.com/api/product/5 This is instead of the devexpress default by which it would use the loadURL and append a filter.
Added property to support byKeyURL
Fixed case
Fixed case
Explained byKeyUrl parameter
Added allUrl
AllURL options added
Contributor
|
We appreciate the PR. However, we'd like to refrain from adding a non-essential functionality to the library code. Rationale below.
Such customization can be achieved without code modifications. var filter = loadOptions.Filter;
if (filter != null && filter.Count == 2 && Equals(filter[0], "OrderID")) {
// looks like a byKey request
}The function createAspNetStoreAllUrls(options) {
options.loadUrl = options.allUrl || options.loadUrl;
// etc, etc
return DevExpress.data.AspNet.createStore(options);
}Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refer to the readme