Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Minor changes in REST API definitions.

...

URL

http://localhost:8080/ oledocstore/documents

 

Method

GET

 

Query string

requestContent=

Request XML

Returns

201 Created & Location

Bag content Response content type: text/xml
If all the documents have xml content, the response xml will be sent.

Response content type:
If at least one document has binary content, then bag content will be sent with response.xml and content files (PDF, DOC etc)

 

401 Unauthorized

 

 

415 Unsupported Media Type

 

...

If the specified document does not exist, it is not created by this command.

Modify a documentone or more documents:

URL

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

 

Method

PUT

 

Request Body

XML

Request XML

Returns

200 OK and response XML

Response XML

 

401 Unauthorized

 

 

404 Not Found

 

 

415 Unsupported Media Type

 

Modify one or more documents :

URL

http://localhost:8080/ oledocstore/documents

 

Method

PUT

 

Request Body

XML

Request XML

Returns

200 OK and response

Response XML

 

401 Unauthorized

 

 

404 Not Found

 

 

415 Unsupported Media Type

 

Modify one or more documents with with binary content (PDF, DOC etc):

URL

http://localhost:8080/ oledocstore/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

 

...