def METHOD_NAME(self, *args, **kwargs):
    # get user request to get geometry constraint
    editing_layer = Layer.objects.METHOD_NAME(pk=kwargs['layer_id'])
    constraints = GeoConstraintRule.get_constraints_for_user(self.request.user, editing_layer)
    geometries = []
    for constraint in constraints:
        geom = constraint.get_constraint_geometry()
        if geom[1] > 0:
            geometries.append(json.loads(constraint.get_constraint_geometry()[0].json))
    return Response({'geometries': geometries}