added rest adapter