Reformat and add more REST API docs.