Project

Profile

Help

Story #7231

Updated by bmbouter over 4 years ago

## Background 

 Users need to: 

 * List all users 
 * View a single user 
 * Modify a user 
 * Delete a user 

 ## URL 

 * `GET /pulp/api/v3/users/`    - the list view 
 * `GET /pulp/api/v3/users/:uuid/`    - the detail view 
 * `PUT/PATCH /pulp/api/v3/users/:uuid/`    - the modify view 
 * `DELETE /pulp/api/v3/users/:uuid/`    - the deletion view 


 ## The model 

 This is defined by Django: https://github.com/django/django/blob/7af8f4127397279d19ef7c7899e93018274e2f9b/django/contrib/auth/models.py#L321-L356 

 ## Serializer fields 

 * username - https://github.com/django/django/blob/7af8f4127397279d19ef7c7899e93018274e2f9b/django/contrib/auth/models.py#L330-L339 
 * first_name - https://github.com/django/django/blob/7af8f4127397279d19ef7c7899e93018274e2f9b/django/contrib/auth/models.py#L340 
 * last_name - https://github.com/django/django/blob/7af8f4127397279d19ef7c7899e93018274e2f9b/django/contrib/auth/models.py#L341 
 * email - https://github.com/django/django/blob/7af8f4127397279d19ef7c7899e93018274e2f9b/django/contrib/auth/models.py#L342 
 * is_staff - https://github.com/django/django/blob/7af8f4127397279d19ef7c7899e93018274e2f9b/django/contrib/auth/models.py#L343-L347 
 * is_active - https://github.com/django/django/blob/7af8f4127397279d19ef7c7899e93018274e2f9b/django/contrib/auth/models.py#L348-L355 
 * date_joined - https://github.com/django/django/blob/7af8f4127397279d19ef7c7899e93018274e2f9b/django/contrib/auth/models.py#L356 
 * permissions - a list of dictionary items with the keys `object` and `permission`. 
 * groups - a list-style URL Field to the groups the user is a member of 

Back