add list api to server
add unit test