It would be nice to have REST API methods for CRUD operations here, for developers who might use it in decoupled solutions or some APIs implementations.

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:

  • 1.x Comparechanges, plain diff MR !1

Comments

valentine94 created an issue. See original summary.

sergeydruua’s picture

Assigned: Unassigned » sergeydruua

sergeydruua’s picture

Assigned: sergeydruua » valentine94
Status: Active » Needs review


Added a minimal REST API (CRUD) for the StockSubscription entity.

Endpoints (cookie/session auth, json format):

POST /api/commerce-back-in-stock — create subscription

GET /api/commerce-back-in-stock — list subscriptions (respects access checks)

GET /api/commerce-back-in-stock/{id} — get a single subscription

PATCH /api/commerce-back-in-stock/{id} — partial update

DELETE /api/commerce-back-in-stock/{id} — delete subscription

sergeydruua’s picture

Assigned: valentine94 » Unassigned
Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.