Merge RestAPI with basic funcionality

do you expect begin to be < 0 ?