Consider the case where I have archived media on a file system. The media could possible contain metadata and/or bookmarked content. My query parameters for metadata within the media is as follows: keyword, time (start and end) and ID
My query parameter for bookmarks within the media is as follows: keyword, description
For adding or updating bookmarks to media I've considered:
POST /media/{id}/bookmark
<XML within the entity body>
Alternative being considered:
POST /bookmark
<XML within the entity body>
At issue. What's an appropriate query resource that'll capture querying of 'keyword' for metadata and/or bookmarks? For instance given:
GET /media?keyword={}
The immediate question becomes, which keyword?
Solution 1: Server could return a representation that includes both metadata and bookmarked content that matches the 'keyword'
Solution 2: Design a URI that creates a delineation between keyword for metadata and bookmarks. What should this look like?