Rest API 获取多个关系的数据

问题描述 投票:0回答:0

根据JSON API规范

  1. 如果您想对文章发表评论,请执行此操作
    http://example.com/articles/1/comments
  2. 如果您想要文章的作者,请执行此操作
    http://example.com/articles/1/author
  3. 如果我想要文章的评论和作者怎么办?我应该做吗
    articles/1?include=comments,author

REST API
是否必须遵守和规范?

rest json-api
© www.soinside.com 2019 - 2024. All rights reserved.