add REST documentation for principals module

And here