Page 1 of 1

Examples of GET/DELETE/PATCH applications in REST

Posted: Mon Jun 03, 2019 5:47 am
by macsir
Hi, all
Not sure if anyone is interested in examples of GET/DELETE/PATCH applications in REST, but I would like to share

test.xlsx is an application under Tests folder,

To GET an application (just dump the binary file and rename it as xlsx, you can open it in Excel)

Code: Select all

https://URL/api/v1/Contents('Applications')/Contents('Tests')/Contents('test.xlsx.blob')/Document/Content
Same request to PATCH, but select a binary body (an updated file, say test1.xlsx) in the Postman and send

To Delete an application,

Code: Select all

https://URL/api/v1/Contents('Applications')/Contents('Tests')/Contents('test.xlsx.blob')
If anyone knows how to POST, please share it as well here.

Re: Examples of GET/DELETE/PATCH applications in REST

Posted: Thu Aug 08, 2019 2:57 pm
by yyround
Thanks for sharing.

Looking forward to more of the RESTAPI tips:).

Regards
YY