Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I am working with REST and Voting api module in drupal8, I have using GET method to get vote results, so in api url placing of {vote} which ID I can pass.
Here it is api url: http://drupal.com/entity/vote/{vote}?_format=json
can anyone please guide me.
Comments
Comment #2
mqanneh+1
Comment #3
MHGR CreditAttribution: MHGR commentedHi,
I got the solution which I have posted.
To get Vote details, In Vote api url: http://drupal.com/entity/vote/{vote}?_format=json, try to pass {vote} => Vote ID.
For POST you can follow this link https://www.drupal.org/project/votingapi/issues/2865139
Comment #4
squinternata CreditAttribution: squinternata commentedHi
I get error 404 even if the vote id is correct, does the rest call works only with the dev version?
Comment #5
TR CreditAttribution: TR commented#2865139: Using POST or PATCH to update vote status