add optimization of Endpoint designed for generating API objects