If i understand this correctly, this is replacing any forward slashes in the api path annotation with "-"?  I think we could make a more general solution by splitting on "/" and actually placing the correct route with the forward slashes specified in the annotation?