add rest docs.