R
Refine

ask-any-question

Rest API Backend for CRM

Aadverse-sapphire3/26/2024
Please is there a rest api w/o next js template for the current CRM template?
Kkapa.ai3/26/2024
Hi @laryhills. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- The current CRM template provided by Refine uses GraphQL, not REST, for its API. The backend is generated using the nestjs-query package. Unfortunately, the backend code is not open-source, but you can explore the schema at <https://api.crm.refine.dev/graphql> (https://api.crm.refine.dev/graphql). For more information on how the backend is configured, you can refer to the nestjs-query documentation (https://doug-martin.github.io/nestjs-query/docs/introduction/getting-started) and the backend configuration section (https://refine.dev/docs/data/packages/nestjs-query/#backend-configuration) in the Refine documentation. If you're interested in switching the data provider from GraphQL to REST API, you might need to do some custom implementation. Refine is highly customizable and extensible, so it should be possible to adapt it to use a REST API, but specific instructions or examples are not provided in the knowledge sources. Sources: - Discord support thread: Where can I find the Api for app-crm example? (https://discord.com/channels/837692625737613362/1187277183983558757) - Discord support thread: source code for the backend of the CRM example? (https://discord.com/channels/837692625737613362/1195933792368611359) - Custom Middleware for CRM boilerplate (https://github.com/refinedev/refine/discussions/5455) ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
Kkapa.ai3/26/2024
<@736574772141621332> kapa.ai is still learning and improving, please let us know how it did by reacting below

Looking for more? Join the community!

R
Refine

ask-any-question

Join Server