Added duplicate api exception when two apis have the same name