Changeset 5512


Ignore:
Timestamp:
08/01/14 13:14:43 (10 years ago)
Author:
Twan Goosen
Message:

Updated Protocol.txt, now reflecting the behaviour of the operation for getting a single VC
Refs #604

File:
1 edited

Legend:

Unmodified
Added
Removed
  • VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/Protocol.txt

    r5333 r5512  
    1818        - "Accept" can be used all requests. Accepted values are "text/xml",
    1919          "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.
    2123        - Headers for HTTP Basic Auth need to be set on POST, PUT and DELETE
    2224          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.
    2330
    2431
     
    96103              authentication: not required
    97104                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
    102110                              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).
    103116
    104117    e) Retrieve all / search virtual collections (GET)
     
    146159                              an empty list will be returned.
    147160
    148     g) Retrieve a virtual collection in CMDI format (GET)
    149                  description: The virtual collection referenced by the URI will
    150                               be retrieved in CMDI format.
    151                  HTTP method: GET
    152                          URI: $BASE/service/virtualcollections/$id/cmdi
    153          URI path parameters: $id := is the ID of the virtual collection,
    154                                      which is to be retrieved
    155             query parameters: none
    156                 HTTP headers: none
    157               authentication: not required
    158                 request body: none
    159                  result body: The virtual collection in CMDI format If the
    160                               virtual collection is not found the appropriate
    161                               HTTP status code is issued and an error message
    162                               is returned.
    163 
    164161TODO: Add {id}/state
    165162
Note: See TracChangeset for help on using the changeset viewer.