hana-opensap-cloud-2020 icon indicating copy to clipboard operation
hana-opensap-cloud-2020 copied to clipboard

Different ui framework, like vue.js, react etc. on cds model

Open jung-thomas opened this issue 4 years ago • 2 comments

@albertlast

Since we got break out point in cap, i would like to see how setup a different ui framework, like vue.js, react etc. on cds modell

jung-thomas avatar Jun 30 '20 20:06 jung-thomas

I look into this one but I'm curious of the kind of scope you are interested in. Ultimately other UI frameworks have the ability to call REST or OData, nothing CAP specific there. Is that just what you are wanting?

jung-thomas avatar Jun 30 '20 20:06 jung-thomas

Well i try this already by my own, to get an idea how this could work. End of the day like you mention is the access of odata/rest, the point where the framework get contact with other parts of cap.

When i got nothing wrong, than is OData an advanced version of the rest. So can i access the OData by a common rest call from framework like this? i guess i lost by this way some metadata.

  • maybe chuck https://www.npmjs.com/package/odata-query into this than

Or can i create somehow a common/generic rest service without odata on cap side?

i personally ended up with use of jaydata: https://jaydata.org/blog/odata-cookbook-with-jaydata as lib in my frontend solution. but i'm not sure if this lib some kind of "best" or other one exists which a more common to use for odata into a "third party" framework, maybe a sap lib exists.

Maybe i ask google the wrong questions, but it feels like that odata is niche solution outside of sap ecosystem, so it's hard for me to get a good answer of this question "how to connect/integrate such the kind framework to cap middleware layer"

So maybe is my question is, how to connect from “non sap” js/nodejs env to cap, If the other side is a frontend framework like react or maybe a middleware again should make no difference.

albertlast avatar Jul 01 '20 05:07 albertlast