add REST documentation for principals module

Not accurate