Expose the Country & Subdivision list for decoupled sites to allow address update from JS UI

Created on 7 December 2020, almost 4 years ago
Updated 19 October 2023, about 1 year ago

Problem/Motivation

A decoupled Drupal site using Address module might choose to allow users to update their address from JS UI. This means that the JS UI needs to be aware of List of Countries, Subdivisions & their mapping for accuracy of data.

Steps to reproduce

Proposed resolution

Expose the list of countries & Subdivision in an endpoint with JSON response.
Alternatively, try a solution that integrates well with JSONAPI & GraphQL as well.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India dipakmdhrm

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

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

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