Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

URL

http://localhost:8080/oledocstore/rest/documents

 

Method

POST

 

Content Type

multipart/form-data

 

Content Disposition

text/xml

 

Content

XML

Request XML


Returns

201 Created & Location

Response XML
Need to add "Location" field for each document in response xml

 

401 Unauthorized

 

 

415 Unsupported Media Type

 

...

URL

http://localhost:8080/oledocstore/rest/documents

 

Method

POST

 

Content Type

multipart/form-data

 

Content Disposition

application/octet-stream

 

Content Multi-part binary

Bag content


Returns

201 Created & Location

Response XML

 

401 Unauthorized

 

 

415 Unsupported Media Type

 

...

URL

http://localhost:8080/oledocstore/rest/documents

 

Method

GET

 

Query string
(Params
append to
the url)

category=
type=
format=
start=
rows=

 

Returns

200 OK and XML

Response xml with start, end, and next(url) fields
and link info about documents in this page

 

401 Unauthorized

 

 

404 Not Found

 

...

URL

http://localhost:8080/oledocstore/rest/documents

 

Method

PUT

 

Request Body

Request XML Request XML

 

Returns

200 OK and response

Response XML

 

401 Unauthorized

 

 

404 Not Found

 

 

415 Unsupported Media Type

 

...

URL

http://localhost:8080/oledocstore/rest/documents

 

Method

POST (PUT does not support multi-part request)

 

Request Body Multi-part binary

Bag content


Returns

200 OK and response

Response XML

 

401 Unauthorized

 

 

404 Not Found

 

 

415 Unsupported Media Type

 

...

URL

http://localhost:8080/oledocstore/rest/documents/[uuid]

 

Method

DELETE

 

Returns

204 No Content
On success, no response body is returned.

  200 OK and response

Response XML

 

401 Unauthorized

 

 

404 Not Found

 

 

415 Unsupported Media Type

 

...

URL

http://localhost:8080/oledocstore/rest/documents/

 

Method

DELETE

 

Request Body

Request XML Request XML

 

Returns

200 OK and response

Response XML

 

401 Unauthorized

 

 

404 Not Found

 

 

415 Unsupported Media Type

 

...