add restful interface and rabbitmq operation