Closed (won't fix)
Project:
REST UI
Version:
8.x-1.20
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
7 Jul 2021 at 15:11 UTC
Updated:
8 Jul 2021 at 07:37 UTC
Jump to comment: Most recent
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.
Comments
Comment #2
clemens.tolboomThis 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.
Comment #3
nidhijsen commentedSorry about that. I think I posted in the wrong place.