Project

Profile

Help

Story #7232

closed

As a user, I can Read Group, membership, and permissions via an API

Added by bmbouter over 3 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Sprint 79
Quarter:

Description

Background

Users need to:

  • List all groups
  • View a single group
  • View Membership info
  • View Permission info

URL

  • GET /pulp/api/v3/groups/ - the list view
  • GET /pulp/api/v3/groups/:uuid/ - the detail view
  • GET /pulp/api/v3/groups/:uuid/permissions/ - list all permissions view
  • GET /pulp/api/v3/groups/:uuid/users/ - list all users in the group view

The Model

The model is defined by Django: https://github.com/django/django/blob/7af8f4127397279d19ef7c7899e93018274e2f9b/django/contrib/auth/models.py#L92-L126

/pulp/api/v3/groups/:uuid/ Serializer

/pulp/api/v3/groups/:uuid/permissions/ Serializer

Each permission entry for model-level permission should have:

{
    "name": "file.view_fileremote",
    "obj": None
}

Each permission entry for the object-level permission should have:

{
    "name": "file.view_fileremote",
    "obj": "/pulp/api/v3/remotes/file/file/<UUID_HERE/"
}

/pulp/api/v3/groups/:uuid/users/ Serializer

A list of entries like:

{
    "username": "foo",
    "pulp_href": "/pulp/api/v3/users/<UUID_HERE>/"
}
Actions #1

Updated by bmbouter over 3 years ago

  • Subject changed from As a user, I can CRUD Groups to As a user, I can CRUD Groups via an API
Actions #2

Updated by bmbouter over 3 years ago

  • Description updated (diff)
Actions #3

Updated by bmbouter over 3 years ago

  • Description updated (diff)
Actions #4

Updated by bmbouter over 3 years ago

  • Description updated (diff)
Actions #5

Updated by bmbouter over 3 years ago

  • Description updated (diff)
Actions #6

Updated by fao89 over 3 years ago

  • Tracker changed from Issue to Story
  • % Done set to 0
  • Severity deleted (2. Medium)
  • Triaged deleted (No)
Actions #7

Updated by dkliban@redhat.com over 3 years ago

  • Description updated (diff)
Actions #8

Updated by dkliban@redhat.com over 3 years ago

  • Description updated (diff)
Actions #9

Updated by bmbouter over 3 years ago

  • Subject changed from As a user, I can CRUD Groups via an API to As a user, I can Read Group, membership, and permissions via an API
  • Description updated (diff)
Actions #10

Updated by dkliban@redhat.com over 3 years ago

  • Groomed changed from No to Yes
  • Sprint set to Sprint 78
Actions #11

Updated by bmbouter over 3 years ago

  • Description updated (diff)
Actions #12

Updated by fao89 over 3 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to fao89
Actions #13

Updated by fao89 over 3 years ago

  • Status changed from ASSIGNED to POST
Actions #14

Updated by rchan over 3 years ago

  • Sprint changed from Sprint 78 to Sprint 79

Added by Fabricio Aguiar over 3 years ago

Revision 7a11ac4e | View on GitHub

Read API for Group, membership, and Permissions

https://pulp.plan.io/issues/7232 closes #7232

Actions #15

Updated by Anonymous over 3 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #16

Updated by dkliban@redhat.com over 3 years ago

  • Sprint/Milestone set to 3.6.0
Actions #17

Updated by pulpbot over 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF