I tried adding a vote over REST request and was getting Access Denied / Forbidden errors.

I was able to overcome the issue by implementing hook_ENTITY_TYPE_access and hook_ENTITY_TYPE_create_access. I will attach a patch with my changes. Pls review.

Comments

ravi_sam created an issue. See original summary.

ravi_sam’s picture

StatusFileSize
new955 bytes
ravi_sam’s picture

The patch above allowed GET requests, but I got errors when I tried POSTing a vote. I have made some more changes in the code, after which I could POST a vote. Here is the revised patch. Pls review.

magick93’s picture

Is it possible, in 8.x to call the vote api using REST?