OpusCapita / filemanager

React based FileManager for browser ( + FS REST API for Node.js and Express)

Home Page:https://demo.core.dev.opuscapita.com/filemanager/master/?currentComponentName=FileManager&maxContainerWidth=100%25&showSidebar=false

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Document API object

kamiljano opened this issue · comments

I have a custom backend and I would love to build a custom api object to communicate with it. At this point the only thing that can be done in that regard is reverse-engineering this: https://github.com/OpusCapita/filemanager/blob/master/packages/connector-google-drive-v2/src/api.js

Later on I will also need to be able to use the component to browse the local files (it's a desktop node.js app) what will require me to implement yet another api.

The component shouldn't make the assumption that the data is pulled from a server. Instead it should be able to pull any API component that is passed to it. This means that the necessity of specifying the apiOptions.apiRoot is also a weird idea

Hi @kamiljano!

Agree with your thoughts. Do you have time to make PR?

If no, I can't promise that it will be fixed soon. PR is the fasted way to achieve what you want.

Heh... I was hoping for the docs, because I didn't want to spend time figuring this thing myself :P
I'll see how desperate I become about it :P