一 、Generic的视图子类

1.1 CreateAPIView

提供 post方法

继承自: GenericAPIView、``CreateModelMixin`

1.1 ListAPIView

提供 get 方法

继承自:GenericAPIViewListModelMixin

1.3 RetrieveAPIView

提供 get 方法

继承自: GenericAPIViewRetrieveModelMixin

1.4 DestoryAPIView

提供 delete 方法

继承自:GenericAPIViewDestoryModelMixin

1.5 UpdateAPIView

提供 put patch 方法

继承自:GenericAPIViewUpdateModelMixin

1.6 RetrieveUpdateAPIView

提供 getputpatch方法

继承自: GenericAPIViewRetrieveModelMixinUpdateModelMixin

1.7 RetrieveUpdateDestoryAPIView

提供 getputpatchdelete方法

继承自:GenericAPIViewRetrieveModelMixinUpdateModelMixinDestoryModelMixin

相关文章:

  • 2022-12-23
  • 2021-11-25
  • 2021-07-30
  • 2021-10-12
  • 2022-01-07
  • 2021-06-17
  • 2021-11-26
猜你喜欢
  • 2022-02-24
  • 2021-12-07
  • 2021-07-21
  • 2021-10-17
  • 2022-01-18
  • 2021-06-02
  • 2021-09-10
相关资源
相似解决方案