Hi Tommi,

nice demo! I am not completely sure which kind of URL this represents:

app.mapUrl("^/(.*)$", "getvalue")
.setMethod("^GET$")
.setArg("key", "$1");

The second argumen is pathinfo, correct? Which URLs will trigger this
mapping?

Thanks
Raphael



2016-05-09 13:09 GMT+02:00 Tommi Mäkitalo <[email protected]>:

> Hello,
>
> I just implemented a new demo "rest". The demo shows how to use the http
> method (GET, POST, ...) to route requests to components. Rest interfaces
> use this method to specify, what to do with a resource and the url to
> specify the resource itself. This demo is maybe the simplest thinkable
> REST interface. It just stores values to keys in memory.
>
> You can find it it github in the demo directory of the tntnet repo.
>
> Now I plan to create another REST interface demo. This will be a little
> more sophisticated. It will use a database as a storage (using tntdb of
> course) and a JSON interface to transport data. I thought about a
> friends database, where persons and friend relationships are stored.
>
>
> Tommi
>
>
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications
> Manager
> Applications Manager provides deep performance insights into multiple
> tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Tntnet-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tntnet-general
>
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to