add REST documentation for principals module

Same here