Sebastien Blanc I believe this logic needs to be implemented on the REST endpoint.
Unless this will be specific for one specific client (say one console user) and saved in his local storage, I'd implement it on server-side.