How can i create custom rest api to create new collection type and components dynamically?

Do you find any solution yet?