Tastype嵌套资源URI

2024-09-30 03:22:46 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在创建一个API,我想在其中POST和{}父对象中的子对象。例如:

  • 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

solutionurl只返回用户提交的解决方案。上面的URL用于访问每个挑战的解决方案列表。在

我需要这个解决方案来应用于多个子对象。在


Tags: 对象addapiidgetwith解决方案post

热门问题