The second argument is the component. So this calls "getvalue.ecpp" when
the http method is GET and sets the argument "key" to the value of the
url after the slash.
I sent this mail already some days ago but with the wrong sender
address, so it did not go to the list.
Tommi
Am 09.05.2016 um 13:42 schrieb Raphael Fuchs:
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]
<mailto:[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]
<mailto:[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
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general