Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-4344

improve API documentation for /api/management/v1/useradm/roles

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: (None)
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Days in progress:
      0

      Description

      The currently available documentation is sparse, and I was not able to figure how to e.g create a Role for group permissions.

      E.g I got this example:

      curl 'https://hosted.mender.io/api/management/v1/useradm/roles' \
        -H 'Authorization: Bearer <bearertoken>' \
        -H 'Cookie: JWT=<token>;' \
        --data-binary '{"name":"<roleName>","description":"<description>","permissions":[{"action":"VIEW_DEVICE","object":{"type":"DEVICE_GROUP","value":"<groupName>"}}]}'
      

      E.g 'VIEW_DEVICE' action is not documented and neither is 'DEVICE_GROUP' object type.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mirzak Mirza Krak
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel