• Icon: Feature Part Feature Part
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 3.2.0
    • None
    • backend
    • None
    • Not defined

      Context:
      We are going to have a multi-select for adding users to the collection but the current endpoint only supports adding one user at a time.

      AT:

      • Change the endpoint to adding roles to entry (POST /api/collection/:id/role) to accept an array of roles instead of one role
      • All the users that are listed in the body will be added to the collection
      • If I add multiple roles A and B and B already exists none of the roles is added
      • If I add multiple roles A and B and B has already been added then there should be a conflict error
      • the rest API body is adjusted to the following:
        [
            {
                "identity": {
                    "id": "kermit",
                    "type": "user" // or group or null
                },
                "role": "manager" // or editor, viewer
            },
            ...
        ]
        
      • the return of the identity id is removed
      • the response code if everything went fine is changed from 200 to 204 (no content)
      • The rest API documentation is adjusted to the new endpoint

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              omran.abazeed Omran Abazeed
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: