REST Web Service API < Portfolio < Darin Tyler

You will need a REST client such as SoapUI or Postman in order to query the REST Web Service API. Check below for example requests.

Note: If you query the endpoints in the browser directly, then the requests will default to XML format. Also, keep in mind that the document IDs in these examples will not be valid for your session. You can find usable IDs by browsing the Document Library application directly.


Here is an example request for all documents in XML format:



Request headers:

GET http://darintyler.com/portfolio/documents/REST/documents/all HTTP/1.1
Accept-Encoding: gzip,deflate
Accept: application/xml
Host: darintyler.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.5 (Java/12.0.1)


Here is an example request for all documents in JSON format:



Request headers:

GET http://darintyler.com/portfolio/documents/REST/documents/all HTTP/1.1
Accept-Encoding: gzip,deflate
Accept: application/json
Host: darintyler.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.5 (Java/12.0.1)


Here is an example request for a single document in XML format:



Request headers:

GET http://darintyler.com/portfolio/documents/REST/documents/single/6600 HTTP/1.1
Accept-Encoding: gzip,deflate
Accept: application/xml
Host: darintyler.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.5 (Java/12.0.1)


Here is an example request for a single document in JSON format:



Request headers:

GET http://darintyler.com/portfolio/documents/REST/documents/single/6670 HTTP/1.1
Accept-Encoding: gzip,deflate
Accept: application/json
Host: darintyler.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.5 (Java/12.0.1)