if you are going to get a permit, well get it. then call for an inspection and ask what they want. what they want is what they get. since you are asking us how to do it, may guess is the you haven't meet the inspect.
if not permitted, well do what you want. if the drain is not proper sometimes...