RestAPI base code

RestAPI base code