I'm running Drupal 7 with the Services module and the Flag Service modules installed but I'm having trouble trying to figure out how to Get countall for a particular post ? Can anyone please tell me what URL I should use ?

URL to get all posts : http://webaddess/rest/events

URL to get one Post : http://webaddess/rest/node/3591

If there is any documentation or Tutorial available for this module please let me know.

Comments

malikmati created an issue. See original summary.

malikmati’s picture

Issue summary: View changes

I managed to find URL but getting this error : 406 Not Acceptable : There is no flag with node

I am doing POST with this URL : http://website.com/rest/flag/countall

Header :
Content-Type: application/json
x-csrf-token: token
Body :
{
"flag_name":"content_favorite",
"content_id":"3591"
}

skyredwang’s picture

Status: Active » Closed (duplicate)

You have already asked the question here #2571261: how to use Services Module with Flag Module ?, making this a duplicate.