CMS-2554: Template getByKey REST methods and TS-classes