Hi,

I have created a custom REST resource(using a custom module) for posting product details in my drupal site to an external site.
The products ae actually displayed as blocks each having a 'buy now' button. My requirement is when someone clicks the 'buy now' button, the REST resource I created needs to be updated with the details of the product(eg: product name, id, description, price etc) selected and then redirect the user to the external site with all these product details.

Is this achievable? Can a rest resource be updated with dynamic data based on a button click?
Would really appreciate if anyone can help me on this.

CommentFileSizeAuthor
img2.png20.08 KBnidhijsen

Comments

nidhijsen created an issue. See original summary.

clemens.tolboom’s picture

Category: Task » Support request
Priority: Major » Normal
Status: Active » Closed (won't fix)

This is a support request for something other then this project.

I guess you read through https://www.drupal.org/docs/8/core/modules/rest but this sound mere a Guzzle/Post JSON to the other site? You can maybe ask on https://drupal.stackexchange.com/ ?

I close this as won't fix as not module related. Feel free to comment here in case someone else finds your question.

nidhijsen’s picture

Sorry about that. I think I posted in the wrong place.