Merge RestAPI with basic funcionality

hmm, wasn't this remove in main branch because it is not used anywhere? please check...