Shared Code for Maxwell REST services