Refactor parameter decoder, response, get handler