-
Notifications
You must be signed in to change notification settings - Fork 427
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add edit and remove-member APIs to js-config
Add some extra information to the js-config on the edit-group page: 1. Add details of the PATCH API call for editing a membership 2. Add details of the DELETE API call for removing a membership 3. Add the userid of the authenticated user. This is needed because deleting or editing the authenticated user's own membership has different consequences and needs to be treated differently by the UX. The URLs for the PATCH and DELETE APIs have ":userid" in place of the user ID. The frontend needs to replace this with the userid it wants to act on. This follows the syntax of the URL Pattern API: https://developer.mozilla.org/en-US/docs/Web/API/URL_Pattern_API
- Loading branch information
Showing
2 changed files
with
43 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters