n1crack / vuefinder

Empower your Vue.js applications with this versatile and customizable file manager component, simplifying file organization and navigation.
https://vuefinder.ozdemir.be
MIT License
259 stars 75 forks source link

REST API? #27

Closed peebles closed 9 months ago

peebles commented 1 year ago

Looks like an awesome component! I have a NodeJS backend that implements a virtual file system. I wouldn't be able to use your php server ... not without spending a lot of time creating a custom adapter and having that talk to my existing backend. But if you happen to have documentation on the REST interface between your vue code and your php server, I could use that to create the required endpoints in my backend.

I can reverse engineer some of that using your live demo, but its read-only so I can't try "write stuff".

n1crack commented 1 year ago

Thanks,

You can look here: https://github.com/n1crack/vuefinder-php/blob/master/src/VueFinder.php

peebles commented 1 year ago

Probably stupid question, but how do you run vuefinder-php? Assuming I have php and composer installed. I'm not a php person. I just want to run an instance on my local machine looking at '/', so I can curl to it and observer the JSON coming back.

peebles commented 1 year ago

I figured out how to run your php server side code. So I should be able to figure out the rest api now.

n1crack commented 1 year ago

Demo application is using laravel. You can look at it too. https://github.com/n1crack/vuefinder.ozdemir.be/blob/main/routes/web.php