improved REST Api, support reverse order param