How is the binary data formatted for the Filedata parameter to the POST /api/library/publish method ? The example in the API documentation only shows the format of a curl command. This is a general problem wih the API documentation - it does not show the actual text of example HTTP requests, just how to use the API using RestSharp or curl, or JavaScript. If the HTTP text was shown then the documentation would be much more useful (IMHO!)
Hi Matthew,
Not sure if I understand your question. But if you are looking for a sample with a specific programming language to call REST API, it is usually a challenge to provide exhaustive list. That's why we use CURL as it's a command line and easy to test. Also, personally, I use Postman quite a lot. You can type parameters and there is an option to generate a sample code in several languages. I wrote a blog post about a few tools I use sometime back. It's a bit old now. But the tool itself is quite intuitive. You may want to give it a try.
https://fieldofviewblog.wordpress.com/2015/03/24/tools-for-testing-rest-api/