REST 响应中的超链接是否可以包含对响应中不同属性的结果的引用?
例如,我正在尝试设计一个 API 响应,其中包含一个用于收集前六个月的语句的链接,但我希望此 URI 与原始 GET 请求中返回的语句的 start_date 相关。
"start_date" : “12/1/13”,
"end_date" : “12/31/13”,
"previous_enrollments" : {
"name" : “enrollment_history”,
"title" : “Previous Six Months”
"link" : "/offers/1004/enrollments?", // Where start date is 6 months prior to the current response
"rel" = "self",
"method": "GET",
}