ジャンゴレストフレームワークのバックエンドインターフェイスフレーム、一般サブクラスはDRF最高のパッケージサブクラスビューを表示

DRF最高のパッケージサブクラスビューリスト

 

 

 

ビュー 効果 方法
ListAPIView クエリの複数のデータ 取得する GenericAPIView
ListModelMixin
CreateAPIView 新しいデータ 役職 GenericAPIView
CreateModelMixin
RetrieveAPIView データクエリ 取得する GenericAPIView
RetrieveModelMixin
UpdateAPIView データを変更します 入れ、パッチ GenericAPIView
UpdateModelMixin
DestroyAPIView データを削除するには 削除 GenericAPIView
DestroyModelMixin
RetrieveUpdateAPIView クエリは、データを更新します GET、PUT、パッチ GenericAPIView
RetrieveModelMixin UpdateModelMixin
RetrieveUpdateDestroyAPIView 取得、更新、データを削除 GET、PUT、パッチ、削除 GenericAPIView
RetrieveModelMixin UpdateModelMixin DestroyModelMixin

おすすめ

転載: www.cnblogs.com/gcgc/p/12094987.html