How can I GET/POST flag user by REST API in Drupal 8 or higher

Created on 22 February 2018, about 7 years ago
Updated 19 February 2025, about 2 months ago

am using flag module. I want to provide api for mobile application, that we can POST or GET flag content. Is there any way to return an api by POST / GET method in RESTfull to do it?

i do like that in RESTCLIENT but not solved:

POST: http:www.example.com/entity/flagging/Favorite?_format=json

Parameters:

{"flag_id":"Content" ,"flag_name":"Favorites", "content_id":"34", "action": "flag"}

and i have problem in this module is that what the flag_id meaning i tried every thing to write in that place but always coming false and told me is not a valid bundle type for denormalization so what can i do ????
Thanks

💬 Support request
Status

Needs work

Version

4.0

Component

Flag Bookmark

Created by

🇦🇪United Arab Emirates Moniroaf

Live updates comments and jobs are added and updated live.
  • Needs reroll

    The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024