Changeset 5512
- Timestamp:
- 08/01/14 13:14:43 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/Protocol.txt
r5333 r5512 18 18 - "Accept" can be used all requests. Accepted values are "text/xml", 19 19 "application/xml" or "application/json". If the header is not set, 20 the VCR assumes "application/xml" as default. 20 the VCR assumes "application/xml" as default. An exception is the retrieval 21 of individual collections (2d). This call also accepts "application/x-cmdi+xml" 22 and "text/html" and defaults to the former of these two. 21 23 - Headers for HTTP Basic Auth need to be set on POST, PUT and DELETE 22 24 requests. 25 26 Note that, as an alternative to the usage of the HTTP "Accept" header, the respons 27 type can be controlled by providing one of the following suffixes to the service 28 URL: ".xml", ".json", ".cmdi", ".html". Not all operations will accept all of 29 these types. 23 30 24 31 … … 96 103 authentication: not required 97 104 request body: none 98 result body: Depending on Accept header either an XML instance 99 or the JSON representation of the virtual 100 collection. If the virtual collection is not found 101 the appropriate HTTP status code is issued and an 105 result body: Depending on Accept header either a CMDI, XML or 106 JSON representation of the virtual collection, or a redirect 107 to the collection's detail view in the user interface in 108 case HTML is requested. If the virtual collection is not 109 found the appropriate HTTP status code is issued and an 102 110 error message is returned. 111 By default, it returns the CMDI representation for published 112 collections. If the collection is not published, the 113 service will respond with another accepted representation. 114 If only CMDI is represented, it responds with code 406 115 (Not Acceptable). 103 116 104 117 e) Retrieve all / search virtual collections (GET) … … 146 159 an empty list will be returned. 147 160 148 g) Retrieve a virtual collection in CMDI format (GET)149 description: The virtual collection referenced by the URI will150 be retrieved in CMDI format.151 HTTP method: GET152 URI: $BASE/service/virtualcollections/$id/cmdi153 URI path parameters: $id := is the ID of the virtual collection,154 which is to be retrieved155 query parameters: none156 HTTP headers: none157 authentication: not required158 request body: none159 result body: The virtual collection in CMDI format If the160 virtual collection is not found the appropriate161 HTTP status code is issued and an error message162 is returned.163 164 161 TODO: Add {id}/state 165 162
Note: See TracChangeset
for help on using the changeset viewer.