을 제공하는 스토리지 저장소를 모델링하는 방법 : -내가 REST 방식으로 다음과 같은 사용 사례를 조회 할 수있는 독특한 방법을 찾고 있어요 지능형 REST 기반 액세스
저장소를 가정에는 다음이 포함됩니다 : -
a. green color ball image of 1cm radius
b. yellow color ball image of 1cm radius
c. blue color ball image of 1cm radius
d. green color ball image of 2cm radius
e. yellow color ball image of 2cm radius
f. blue color ball image of 2cm radius
g. computer monitor icon image of size 32x32 pixels in png format
h. computer monitor icon image of size 64x64 pixels in png format
i. computer monitor icon image of size 32x32 pixels in ico format
j. computer monitor icon image of size 64x64 pixels in ico format
k. HR travel policy
l. HR new hire policy
g. HR promotion policy
1. Find all documents published after a certain date?
2. Find all documents published before a certain date?
3. Find all documents published between a certain set of dates?
4. Find all balls which are 1cm in radius
5. Find all documents whose download format is "png"
6. Find all documents whose size is 32x32 pixels
7. Find all balls which are green in color.
스토리지 저장소는 Google 스토리지, Amazon S3, Mongodb GridFS, Java 콘텐츠 저장소 (JCR 2.0) 또는 간단한 파일 시스템을 기반으로 할 수 있습니다.
위의 데이터를 저장하고 검색하는 가장 이상적인 방법은 무엇입니까? 위의 사용 사례 중 하나를 모델링 할 수 있도록 REST URL을 최대한 표현하기를 원합니다 [1-6]. 위의 쿼리를 기반으로 문서를 가져 오는 데 적절한 명명 규칙을 사용할 수 있도록 일반 리포지토리를 디자인하는 방법에 대한 모든 정보를 제공하십시오.
Java Content Repository는 아마도 사용자의 요구에 가장 적합 할 것입니다. JCR : http://jackrabbit.apache.org/ 위에 구축 된 RESTful 프레임 워크 인 Apache Sling도 고려하십시오. 또한 다른 NoSQL 솔루션이 JCR과 같이 바이너리 데이터를 저장하는 것과 관련하여 매우 융통성이 없다고 생각합니다. – orangepips
@orangepips - 팁을 주셔서 감사합니다. 위에서 언급 한 동적 쿼리를 수행하는 REST 기반 URL을 구성하는 방법과 백엔드 코드에서이를 이해하는 방법을 살펴 보았습니다. – user339108
실제로, REST URL은 유형 (예 :/공)에 해당하고 다른 기준은 검색 매개 변수 (예 :? radius = 1cm)가됩니다. 경로 (예 :/api/ball? radius = 1cm) 아래에 이름 공간이있을 수 있습니다. – orangepips