Move params parsing to Api stage to allow namespace query and
body params validation.