Register New Drupal User via Rest API

POST URL
/user/register?_format=json

POST DATA
{
  "name":[{"value":"username"}],
  "mail":[{"value":"email@myemail.com"}],
  "pass":[{"value":"password"}]
}



RESPONSE
{
    "uid": [{
        "value": 18
    }],
    "uuid": [{
        "value": "e0ed7ef9-5543-48f0-8e57-23360695c637"
    }],
    "langcode": [{
        "value": "en"
    }],
    "name": [{
        "value": "abubakar"
    }],
    "created": [{
        "value": "2020-06-07T23:11:41+00:00",
        "format": "Y-m-d\\TH:i:sP"
    }],
    "changed": [{
        "value": "2020-06-07T23:11:41+00:00",
        "format": "Y-m-d\\TH:i:sP"
    }],
    "default_langcode": [{
        "value": true
    }],
    "path": [{
        "alias": null,
        "pid": null,
        "langcode": "en"
    }],
    "field_full_name": [{
        "value": "Patrice Lumumba"
    }],
    "field_phone_number": [{
        "value": "08025360435"
    }],
    "user_picture": []
}

 

Snippet Category
DRUPAL