adapte matching results to restful