I'd like to communicate with rcd directly over http without using the rclone binary to make the request. So far I'm been unable to find documentation on the endpoints for the HTTP API. Does that documentation exists? If not is that something you'd consider providing? If not can would you be able to point me to the location in the code where these endpoints are defined.
Thank you!
What is your rclone version (output from rclone version)
rclone v1.53.3
os/arch: linux/amd64
go version: go1.15.5
Which OS you are using and how many bits (eg Windows 7, 64 bit)
Thank you for the incredible fast reply. I did read those docs and it all makes sense. My question was more about documentation for what goes in the JSON. For example I'd like to do a sync. I've tried posting to /rc/sync and /sync but both say couldn't find method. Also I'm not sure about what the JSON payload should look like. For example I'm guessing something like:
You're right it's all documented. I feel a bit foolish for not finding it myself. Thanks for being patient with me and showing me exactly where to look.
Personally I think it would help to have a section labeled HTTP API or something similar where all of it was laid out in one section rather than in both the rc and rcd pages. I did look through those pages but missed it. This could just be a personal problem though.
Thanks again. I really appreciate the help and the amazing software.
I added an extra paragraph to the front of the docs with a link to the HTTP section so hopefully that will help people in future (Won't be live until 1.54 is released).