コード例 #1
0
ファイル: views.py プロジェクト: gopinath81/vmss
 def partial_update(self, request, thread_id):
     """
     Implements the PATCH method for the instance endpoint as described in
     the class docstring.
     """
     if request.content_type != MergePatchParser.media_type:
         raise UnsupportedMediaType(request.content_type)
     return Response(update_thread(request, thread_id, request.data))
コード例 #2
0
ファイル: views.py プロジェクト: edx-solutions/edx-platform
 def partial_update(self, request, thread_id):
     """
     Implements the PATCH method for the instance endpoint as described in
     the class docstring.
     """
     if request.content_type != MergePatchParser.media_type:
         raise UnsupportedMediaType(request.content_type)
     return Response(update_thread(request, thread_id, request.data))
コード例 #3
0
ファイル: views.py プロジェクト: truonglx1/lms
 def partial_update(self, request, thread_id):
     """
     Implements the PATCH method for the instance endpoint as described in
     the class docstring.
     """
     return Response(update_thread(request, thread_id, request.data))
コード例 #4
0
ファイル: views.py プロジェクト: ahmadiga/min_edx
 def partial_update(self, request, thread_id):
     """
     Implements the PATCH method for the instance endpoint as described in
     the class docstring.
     """
     return Response(update_thread(request, thread_id, request.data))