BDD: add rest interface and sub context implementations