Custom Endpoint for storefront #3628
Unanswered
codewarsfx
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello team,
So for my Usecase I'm trying to build a multi vendor market place with Medusa . to give it multivendor abilities i extended the Medusa core with the medusa Extender . For the storefront i'm using the NextJs storefront . I am trying to implement a feature on the storefront where i fetch product by StoreId ... to do this i created a custom endpoint on the medusa server. I do not intend to make any changes to the default storefront so i'm trying to closely mirror the data it expects. To implement my custom endpoint i followed the same implementation of the /store/products route but the data being returned still differs from what is fetched on the next client.
here's a sample response returned from my custom endpoint
which differs from what is being returned in the products variable here
my plan is to make a call to my custom endpoint here and replace the products variable with the data returned from my endpoint but this isn't possible if the data don't match up.... does this call from the medusa client
do something more than call the /store/products endpoint.... am i missing something ??? any help will be appreciated
thank you
Beta Was this translation helpful? Give feedback.
All reactions