Use this in the api route spec helper to simplify things. This will be expanded in a following commit.