api ws : fixed api generation part