Drupal is a registered trademark of Dries Buytaert
Release: Drupal 10.3.6 Update released for Drupal core (10.3.6)! Release: Drupal 11.0.5 Update released for Drupal core (11.0.5)! Release: Drupal 10.2.9 Update released for Drupal core (10.2.9)! Release: Drupal 10.2.10 Update released for Drupal core (10.2.10)! Release: Drupal 10.3.7 Update released for Drupal core (10.3.7)! Release: Drupal 11.0.6 Update released for Drupal core (11.0.6)! Release: Drupal 10.3.8 Update released for Drupal core (10.3.8)! Release: Drupal 11.0.7 Update released for Drupal core (11.0.7)! Module Revived: Translation Management Tool 8.x-1.19 Module tmgmt updated after 7 months of inactivity (8.x-1.19). Usage Milestone: Account field split Module account_field_split crossed 10,000 active installs.

Provides JSON:API enhancements for user accounts using the JSON:API Resources. The additional endpoints will assist with building a decoupled/headless Drupal application that allows authenticated users to register, login, reset passwords, etc.

This module adds the following JSON:API endpoints:

  • /jsonapi/user/register: Register a new user
  • /jsonapi/user/password/reset: Reset user password
  • /user/{user}/password/update: Update user password

Note that the user password may also be updated using the /jsonapi/user/user/{user} endpoint provided by Drupal core.

Example requests

/jsonapi/user/register

curl --location 'https://www.example.com/jsonapi/user/register' \
--header 'Content-Type: application/vnd.api+json' \
--header 'Accept: application/vnd.api+json' \
--data-raw '{
    "data": {
        "type": "user--user",
        "attributes": {
            "name": "test 123",
            "mail": "[email protected]",
            "pass": "test"
        }
        
    }
}'

/jsonapi/user/password/reset

curl --location 'https://example.com/jsonapi/user/password/reset' \
--header 'Content-Type: application/vnd.api+json' \
--header 'Accept: application/json' \
--data-raw '{
  "data": {
    "type": "user--password-reset",
    "attributes": {
      "mail": "[email protected]"
    }
  }
}'

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Oct 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
8.x-1.0-beta2 Pre-release Oct 14, 2024