[英]Tastypie Nested Resource URIs
我創建了一個API,我想POST
和GET
子女從父對象的對象。 例如:
GET challenge/1/solutions
= [Listof Solutions] filtered with challenge_id=1
GET challenge/1/solution/1
= Solution with id=1 filtered with challenge_id=1
POST challenge/1/solution
= Add to Solution with challenge_id=1
solution
URL僅返回用戶提交的解決方案。 上面的URL用於訪問每個挑戰的解決方案列表。
我需要此解決方案才能應用於多個子對象。
我改用美味的蛋糕
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.