api doc and specs for territories controller