Extracted endpoint dsl

Additional to #714 I extracted also Endpoint specific DSL.