Hi Allan,

I wouldn't say it'd be hard, but it would be a fair bit of code to get the
foundation laid down.

I'd subclass WResource, that would allow you to install it at a url like:
/person

http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WResource.html#a3a740f8cc29e2e6e4e58defc9c88b8b6

Then everytime it gets called you can get an instance of
WApplication::instance()::internalPathNextPart() -
http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1WApplication.html#a95e6b5e4dc9084d45e166264b10b3c46

and from that determine if they want to 'create', 'edit', get number 4 or
whatever.

You could use the DBO objects for the data access:
http://www.webtoolkit.eu/wt/doc/tutorial/dbo.html

And the auth objects for the auth:
http://www.webtoolkit.eu/wt/doc/tutorial/auth.html

And you could generate and parse json:
http://www.webtoolkit.eu/wt/doc/reference/html/group__json.html

If you wanted to do XML, you'd need an external library though.

Let us know how you get on and if you need a hand.

Kind Regards,
Matthew Sherborne


On Wed, May 15, 2013 at 9:13 AM, Alan Jesser <nigo...@hotmail.com> wrote:

> I'm in the process of planning a site and a RESTful API. I haven't used Wt
> as much as I would like to, so I don't its full capabilities yet, but I
> wanted to know if anyone has developed a RESTful API with it. If so was it
> difficult or pretty easy? I want to use Wt for as much of the site and
> RESTful API as possible.
>
> Thanks,
> Alan
>
>
> ------------------------------------------------------------------------------
> AlienVault Unified Security Management (USM) platform delivers complete
> security visibility with the essential security capabilities. Easily and
> efficiently configure, manage, and operate all of your security controls
> from a single console and one unified framework. Download a free trial.
> http://p.sf.net/sfu/alienvault_d2d
> _______________________________________________
> witty-interest mailing list
> witty-interest@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to