Extends rest api

Hi everyone,
I need extends any api get data from new table in database, but im newbie in keycloak. Someone help me flow from entity to public endpoint rest api.
Thanks very much.

Help me, please :disappointed_relieved:


you can call the database by getting an entity manager.

EntityManager em = session.getProvider(JpaConnectionProvider.class).getEntityManager();

Thanks for help me,
I will try it. You can help me about flow of keycloak from entity to services

entity to services -> analyze source code and start from a resource found under https://github.com/keycloak/keycloak/tree/master/services/src/main/java/org/keycloak/services/resources and traceback

thanks for help me :smiling_face_with_three_hearts: