Added create, update, get and delete segment API end points