2
REST 응답의 하이퍼 링크에 응답의 다른 속성 결과에 대한 참조가 포함될 수 있습니까?REST 동적 URI
예를 들어, 지난 6 개월 동안 명령문을 수집하는 링크가있는 API 응답을 디자인하려고 시도했지만이 URI를 원래 GET 요청에서 반환 된 명령문의 시작 날짜에 상대적으로 설정하려고합니다.
"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",
}
감사합니다. – user2815613