You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to set the allowed values in the returned schema dynamically, the getListing method of the class AbstractListingResourceWithGenericId should use a CallContext.
return lf.forCall(rel, r -> r.getListing(searchQueryBean));
in the method getListing is replaced by
return lf.forCall(rel, r -> r.getListing(searchQueryBean), getCallContextForListing(searchQueryBean));
then everything should be working as before, with the option to provide a CallContext dynamically.
Similarly, one could also add a CallContext to the link REL_INSTANCE inside the method getListing as well as to those links generated for SummaryType and FullType.
The text was updated successfully, but these errors were encountered:
In order to set the allowed values in the returned schema dynamically, the
getListing
method of the classAbstractListingResourceWithGenericId
should use aCallContext
.For example, if the method
is added and the line
in the method
getListing
is replaced bythen everything should be working as before, with the option to provide a
CallContext
dynamically.Similarly, one could also add a
CallContext
to the linkREL_INSTANCE
inside the methodgetListing
as well as to those links generated forSummaryType
andFullType
.The text was updated successfully, but these errors were encountered: