Draft implementation of the DSL for REST api