Content
You are here:
node.js api wrapper?
Added by Алексей Баранов over 4 years ago
Hi there everybody!
Is there OpenProject Node.js lib which abstracts work with API? If not, we can start this work and put it on github as opensource if OpenProject team with it. We would like to know OpenProject team's wishes about architecture and API scope of this lib. We also want to know is this forum a good place to discuss this.
Replies (5)
Hi,
I have started an Electron project (so node) for my own convenience and as a playground for Electron. So nothing which is ready for deployment (it will probably never be) and not much documented.
Nevertheless, feel free to have a look https://github.com/jbouduin/openproject.electron and reuse whatever seems re-usable.
Oh, and please let me know if you have something on github.
have fun...
Johan
Hi Johan!
I looked at the project with interest. Unfortunately, I don't know if we can apply it in our work. The problem is, it's overly comprehensive.
It would be great if you separate the call to the REST API from the project into a separate library. Such a library don't contain bindings to DI library, presentation layer, authorization, and so on.
If you could separate the entities and API call to such a library, then other commands could reuse it in their work. Please let us know if we can hope so.
BTW we have started development of such library. But we would prefer your one if you will separate it from the electron-project. By now we could't share it. We need some time to resolve security restrictions before we can push something to github. You may know that bank's security layer is very heavy. I will inform you about our library when we get permissions and push it to github.
Alexey
Hi Alexey,
I know it is not what you want to hear, but I have no intention at all to rewrite/restructure anything. This project is and will remain just a playground, implemented quick and dirty, no tests at all, ...
good luck
Johan
Yeah, bad news. I was hoping we can reuse your library. It seems well
written.
Let me know if you change your decision.
Good luck.
чт, 20 авг. 2020 г., 19:32 :
Hello, Johan!
Here is our self-developed TypeScript library for Node.js/Browser environment. Our team developed it for internal bank project. We decided to share it over public github repo.
Please take a time to watch it. Thanks.
https://www.npmjs.com/package/op-client