Added a feature of createApi