RestAPI base class: