Show my enumeration value list in the frontend

Hello I’m new with working in Strapi, I’m trying to show my enumeration value list in the front-end of my website. I googled all day but I cant find how to do this, internet says I have to call a enumeration api, but that is not possible in strapi right? I really dont know what to do. I use strapi with React.

This topic has been created from a Discord post (1240879944092090449) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

you can’t really, do that, by default

if you use typescript they will be avalible as types

what you need to do is customize controller a bit

is this a singe type?

No, it inside the user and then the collection types

and how do you get your enums?

What I want is a list with business sectors for example

  • it
  • Marketing
  • backend
  • frontend

And you choose one

like whitch route

what do you mean?

/users/:id

it isn’t a api

it is a emun inside the user

well you want to get data from api still

because i make now a sign up page and people have to choose there business sector etc

on the internet says you need an api but i dont want that. i just want the data inside the enum

in my frontend

what is the best way to do this?

look, you want to get this enums, but for that you need to modify a data returned by route

Is it possible to call Enumeration fields list values in API? - #2 by AthorusDigital like i readed this