appirio-tech/topcoder-app

Add community subscribe/unsubscribe section on the profile settings page

Opened this issue · 1 comments

Simillar to skill picker but editable, add communities panel on profile settings page

UI Change

spec_new

API Details

  1. Congitive, iOS and Predix member subscriptions happens via memberCerts/registrations API (legacy).
  2. Blockchain subscriptions happens via groups API

Refer to skills picker code for details(it has add only implementation, edit is not implemented here)

Edit API
There is no update endpoint for in these APIs, use DELETE endpoint for unsubscribe user

  1. For memberCerts/registrations API, use
    DELETE https://api.topcoder-dev.com/v3/memberCert/registrations/{userId}/programs/{programId}/
    DELETE is not working currently, issue is open

  2. For groups API, use
    DELETE https://api.topcoder-dev.com/v3/groups/{programId}/members/{membershipId}/
    use "id" as "membershipId" from GET response

{
        "id": "480",
        "modifiedBy": null,
        "modifiedAt": null,
        "createdBy": "40153832",
        "createdAt": "2017-09-13T14:38:42.000Z",
        "groupId": 20000010,
        "groupName": null,
        "memberId": 40153832,
        "membershipType": "user"
}