Problem/Motivation

Userpoints POST rest resource (api/userpoints) doesn't work when we use user points module 2.x version.

Steps to reproduce

  1. 1) Enable the rest resource of 'api/userpoints'
  2. 2) Try to perform add operation using the end point
  3. 3) User response we get is:
    {
        "message": "No route found for \"POST /api/userpoints\""
    }

Proposed resolution

Change the uri_paths from https://www.drupal.org/link-relations/create to create

Issue fork userpoints-3317408

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

prashantgajare created an issue. See original summary.

prashantgajare’s picture

StatusFileSize
new544 bytes

Added patch for the issue.

prashantgajare’s picture

Assigned: prashantgajare » Unassigned
soham sengupta’s picture

Assigned: Unassigned » soham sengupta
Status: Active » Needs review
StatusFileSize
new544 bytes

Hi, added the patch for the issue as proposed.

soham sengupta’s picture

Assigned: soham sengupta » Unassigned