單項(xiàng)選擇題

django-rest-framework 提供了資源操作的5個(gè)混入類,分別對(duì)應(yīng)資源的創(chuàng)建、查詢、更新、刪除,下列說(shuō)法正確的是()

A.CreateModelMixin:提供create方法用于創(chuàng)建資源
B.ListModelMixin和RetrieveModelMixin:提供update方法用于更新資源
C.UpdateModelMixin:提供destroy方法用于刪除資源
D.DestroyModelMixin:提供list和retrieve,分別用于獲取資源列表和單個(gè)資源

微信掃碼免費(fèi)搜題