Custom api in strapi

You mean to fetch each fields of a model and its components and sub components?