[ext/rest] add directive bkmk to rest (closes #2545595) [applied]