Iss22 rest service

This is the initial REST API implementation.

Please review and merge.