parameters: (self, request:HttpRequest, project_id, pointset_id)
return_statement: return JsonResponse(pointset_data)
docstring: Return a point set.
          parameters:
            - name: project_id
              description: Project of the returned point set
              type: integer
              paramType: path
              required: true
            - name: simple
              description: Wheter or not only ID and name should be returned
              type: bool
              paramType: form
              required: false
              defaultValue: false
            - name: with_points
              description: Wheter linked points should returned as well.
              type: bool
              paramType: form
              required: false
              defaultValue: false
docstring_summary: Return a point set.
          parameters:
            - name: project_id
              description: Project of the returned point set
              type: integer
              paramType: path
              required: true
            - name: simple
              description: Wheter or not only ID and name should be returned
              type: bool
              paramType: form
              required: false
              defaultValue: false
            - name: with_points
              description: Wheter linked points should returned as well.
              type: bool
              paramType: form
              required: false
              defaultValue: false
docstring_tokens: Return a point set . parameters : - name : project_id description : Project of the returned point set type : integer paramType : path required : true - name : simple description : Wheter or not only ID and name should be returned type : bool paramType : form required : false defaultValue : false - name : with_points description : Wheter linked points should returned as well . type : bool paramType : form required : false defaultValue : false
function: def get(self, request:HttpRequest, project_id, pointset_id) -> JsonResponse:
          """Return a point set.
          parameters:
            - name: project_id
              description: Project of the returned point set
              type: integer
              paramType: path
              required: true
            - name: simple
              description: Wheter or not only ID and name should be returned
              type: bool
              paramType: form
              required: false
              defaultValue: false
            - name: with_points
              description: Wheter linked points should returned as well.
              type: bool
              paramType: form
              required: false
              defaultValue: false
          """
          with_points = get_request_bool(request.query_params, 'with_points', False)
          simple = get_request_bool(request.query_params, 'simple', False)
  
          pointset = PointSet.objects.get(pk=pointset_id, project_id=project_id)
          pointset_data = serialize_pointset(pointset, simple)
  
          if with_points:
              pointset_data['points'] = []
  
          return JsonResponse(pointset_data)
function_tokens: def get ( self , request : HttpRequest , project_id , pointset_id ) -> JsonResponse : with_points = get_request_bool ( request . query_params , 'with_points' , False ) simple = get_request_bool ( request . query_params , 'simple' , False ) pointset = PointSet . objects . get ( pk = pointset_id , project_id = project_id ) pointset_data = serialize_pointset ( pointset , simple ) if with_points : pointset_data [ 'points' ] = [ ] return JsonResponse ( pointset_data )