**`PARENT TRACKER ISSUE`**: #160 Create views for the new Hangouts API Endpoint. Some of these items may not need custom code, but are listed here as a reminder of what's needed: - [ ] Create **list** and **detail** views for the endpoint. See the [**DRF ModelViewSet**](https://www.django-rest-framework.org/api-guide/viewsets/#modelviewset), [**DRF Generic Views**](https://www.django-rest-framework.org/api-guide/generic-views/#generic-views) and [**DRF CreateModelMixin**](https://www.django-rest-framework.org/api-guide/generic-views/#createmodelmixin) for background and places to start. - [ ] Add an `ISAuthenticated` permissions class to require a login for the endpoint. See [**Permissions in DRF**](https://www.django-rest-framework.org/api-guide/permissions/) - [ ] Add search or filter backends as needed. See [**DB queries in Django**](https://docs.djangoproject.com/en/3.0/topics/db/queries/), [**DRF Filter Backends**](https://www.django-rest-framework.org/api-guide/filtering/#setting-filter-backends), [**Filtering in DRF**](https://www.django-rest-framework.org/api-guide/filtering/), and [**DRF SearchFilter**](https://www.django-rest-framework.org/api-guide/filtering/#searchfilter) for some background to start. - [ ] Add `search_fields` for endpoint - [ ] Add PATCH function to update records already in the DB - [ ] Add `perform create` function as needed for specialized user lookup or other (e.g. many-to-many) relations. - [ ] Add/define `queryset` for the list view of `projects` - [ ] Add links to associated serializers See https://github.com/codebuddies/backend/blob/master/cbv3_django_prototype/cbv3_django_prototype/resources/views.py as one (but not canonical) example.
PARENT TRACKER ISSUE: #160Create views for the new Hangouts API Endpoint. Some of these items may not need custom code, but are listed here as a reminder of what's needed:
ISAuthenticatedpermissions class to require a login for the endpoint. See Permissions in DRFsearch_fieldsfor endpointperform createfunction as needed for specialized user lookup or other (e.g. many-to-many) relations.querysetfor the list view ofprojectsSee https://github.com/codebuddies/backend/blob/master/cbv3_django_prototype/cbv3_django_prototype/resources/views.py as one (but not canonical) example.