mdn / kuma

The project that powers MDN.
https://developer.mozilla.org
Mozilla Public License 2.0
1.93k stars 679 forks source link

T - the API to support subscription management #6892

Closed peterbe closed 4 years ago

peterbe commented 4 years ago

The backend pieces needed for https://github.com/mdn/kuma/issues/6703

That way we, can Reactify the subscription management page.

What we need is to endpoints:

  1. Getting your subscriptions (plural but it's probably never more than 1)
  2. Cancel a subscription (or cancel them all if that's easier)
peterbe commented 4 years ago

I'm thinking we keep POST /api/v1/subscriptions/ to do what it does today, but add GET /api/v1/subscriptions/ and PUT /api/v1/subscriptions/:id to cancel it.

mindy commented 4 years ago

Would you be able to do https://github.com/mdn/kuma/issues/6703#issuecomment-614246571, along with this work? Or should it be a separate issue?

peterbe commented 4 years ago

Would you be able to do #6703 (comment), along with this work? Or should it be a separate issue?

Separate issue, since this issue is all and only about the v1 api. But sure, the user story can have 3 tasks. Please create that one and feel free to assign it to me. Tancs!