Hello,
i would like to realize a dynamic application using strapi as backend.
I would like to define several content types with their fields in Strapi and then, in the frontend,
let the user choose between content types, then get the selected content type fields to build the query in GraphQL.
Is there a way (eg api call) to get the content types list? Something like GET /api/content_types and
GET /api/fields/contentType1 to get the fields or do i have to create my API that looks in database structure?
there is a route for conentTypes and contentType /api/content-type-builder/content-types/:uid
uid will be ‘api::article.article’
or else you can call strapi.contentTypes[uid] from code