Skip to content

shadcn/poll_rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

poll_rest

Drupal 8 Poll + REST

Installation

  1. Enable poll, rest, restui and poll_rest modules.
  2. Head over to /admin/config/services/rest and enable the poll vote resource.
  3. Enable the POST method.
  4. Save.

Usage

Make a post request to /api/v1/poll/1/vote?_format=json, where 1 the the poll id, with the following payload:

{
    "chid": 2
}

chid is the choice id.

About

Drupal 8 Poll + REST

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages