def list(self, request, project):
        """
        GET method implementation for list view
        job_id -- Mandatory filter indicating which job these notes belong to.
        """

        job_id = request.query_params.get('job_id')
        if not job_id:
            raise ParseError(detail="The job_id parameter is mandatory for this endpoint")
        try:
            job_id = int(job_id)
        except ValueError:
            raise ParseError(detail="The job_id parameter must be an integer")

        job = Job.objects.get(repository__name=project, id=job_id)
        serializer = JobNoteSerializer(JobNote.objects.filter(job=job),
                                       many=True)
        return Response(serializer.data)
def list ( self , request , project ) : job_id = request . query_params . get ( 'job_id' ) if not job_id : raise ParseError ( detail = "The job_id parameter is mandatory for this endpoint" ) try : job_id = int ( job_id ) except ValueError : raise ParseError ( detail = "The job_id parameter must be an integer" ) job = Job . objects . get ( repository__name = project , id = job_id ) serializer = JobNoteSerializer ( JobNote . objects . filter ( job = job ) , many = True ) return Response ( serializer . data )
GET method implementation for list view
        job_id -- Mandatory filter indicating which job these notes belong to.