From Dbo to RESTful database web service
Added by Dave Far about 6 years ago
I am evaluating database ORMs for C and like webtoolkit's possibility to extend to a full Widget library.
If we use Dbo now, how difficult will it be to expose our database later on as RESTful web service using Wt + Dbo?
I did read https://redmine.webtoolkit.eu/boards/1/topics/14034?r=14813#message-14813, but have difficulties to estimate the effort to extend a database integration via Dbo to offer its data as RESTful web services using Wt + Dbo.
Replies (2)
RE: From Dbo to RESTful database web service - Added by lm at about 6 years ago
If you're looking for a java-esque sort of automatic json serialization based on information furnished to Wt::Dbo
, I don't think that exists now, nor do I know what the Wt developers have in store. They have mentioned that they're working on something to make REST services easier to create.
RE: From Dbo to RESTful database web service - Added by Roel Standaert about 6 years ago
If you want to serialize Dbo objects, JsonSerializer might do what you want. There's no equivalent JSON parser, though.
You can of course use Wt::Json
(or any other Json parser/serializer), and then write the necessary code to put that into a Dbo object.