pldubouilh / gossa

🎶 a fast and simple multimedia fileserver
MIT License
883 stars 72 forks source link

rest api #43

Closed ChangePlaces closed 4 years ago

ChangePlaces commented 4 years ago

An api would be nice to be able to

pldubouilh commented 4 years ago

so a rest-ish api is available through the /rpc endpoint, it allows mkdir, rm and mv through a simple JSON structure e.g. {"call":"mv","args":["/AAA", "/hols/AAA"] - the tests are probably a good place for checking it out. The upload is at /upload, and the files are at their natural path. The only API lacking is for file listing, as that's generated on the spot and filled into the html template the for faster / single request loads.

I should maybe document it out somewhere !