fix rest docs