tame-yellow
tame-yellow10mo ago

hi there i have question about edit page

hi there i have question about edit page, API get detail data and patch have difference schema ex:
GET
{
...... other field
"country": {"uid" "xxx", "name": "xxx"}
}
but on post body must
{
....... other field
"country": "uid"
}
GET
{
...... other field
"country": {"uid" "xxx", "name": "xxx"}
}
but on post body must
{
....... other field
"country": "uid"
}
How to handle this need, there are references or examples that I can learn from.
3 Replies
kapa.ai
kapa.ai10mo ago
Hi @Batu. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
foreign-sapphire
foreign-sapphire10mo ago
Hello @angga30prabu I couldn't clearly understand your problem but if my guess is correct, you can create a data provider to fit your needs. https://refine.dev/docs/tutorial/understanding-dataprovider/create-dataprovider/ You can also use #ask-any-question channel to ask your question with as much as details possible, so our chatbot can help you.
kapa.ai
kapa.ai10mo ago
Sorry @Batu, I seem to be having a bit of trouble. Don't worry though, I've pinged my supprt and they will try to fix me up! :technologist: Perhaps try again in 15mins?