Fix DSL should raise an error when api's HTTP method is not set to GET or POST