04 add rest api method