Skip to content

[API] Create Views and Queries for Projects Endpoint #82

Closed
@BethanyG

Description

@BethanyG

Create views for the new Projects 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, DRF Generic Views and DRF CreateModelMixin for background and places to start.

[ ] Add an ISAuthenticated permissions class to require a login for the endpoint. See Permissions in DRF

[ ] Add search or filter backends as needed. See DB queries in Django, DRF Filter Backends, Filtering in DRF, and DRF 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.


WARNING: There may or may not be more complicated logic here around how we pull the contributors list. Current working model potentially has a manytomany filed relating projects to contributors.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions