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

MHGR created an issue. See original summary.

mqanneh’s picture

Category: Task » Support request

+1

MHGR’s picture

Hi,

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

squinternata’s picture

Hi
I get error 404 even if the vote id is correct, does the rest call works only with the dev version?

TR’s picture

Status: Active » Closed (duplicate)