is_flagged with Views Is it possible to to check is_flagged in views ?

If I send POST request to this URL it works fine http://website/rest/flag/is_flagged but I want do it in Views ?

I am creating REST API using Services Module and what I am trying to check is that whether a Node is flagged by current user or not. /rest/flag/is_flagged this URL works fine but I want to do it in Views.

If its possible please tell me how I can do it ?
You could Create a Custom Service Resource for this, but IMO it's easier to do this:


Enable the Views JSON module (which is a sub module of the Views datasource module). This will allow you to get JSON output from a View.
Build a JSON data document page display for a View
Add a contextual filter for a node id, this value will be grabbed from the URL path
Add a contextual filter for a user id, this value could be grabbed from the URL path, or default to the current logged in user, that's up to you
Add a relationship to the flag in the View
Add your desired field output and watch the results preview to see your JSON assembled
Add the necessary filter(s) to limit the results to a certain user/flag/etc.


You then can consume this "resource" by doing a GET on the page path to your View.