【问题标题】:Tastypie Nested Resource URIsTastypie 嵌套资源 URI
【发布时间】:2013-01-11 08:50:45
【问题描述】:

我正在创建一个 API,我想在其中 POSTGET 来自父对象的子对象。例如:

  • 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 用于访问每个挑战的解决方案列表。

我需要将此解决方案应用于多个子对象。

【问题讨论】:

    标签: python django api tastypie


    【解决方案1】:

    我改用delicious-cake

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-09-19
      • 2012-03-05
      • 1970-01-01
      相关资源
      最近更新 更多