Rest API classes and Base Architecture