From lang at b1-systems.de Mon Apr 2 19:21:27 2018 From: lang at b1-systems.de (Ralf Lang) Date: Mon, 2 Apr 2018 21:21:27 +0200 Subject: [dev] RPC and REST In-Reply-To: <70c87dd8-e363-164f-3545-a615ede79b1d@b1-systems.de> References: <36dd93e7-b63f-141a-7bc2-8cf4fa5d1c76@b1-systems.de> <20180216152740.Horde.pwBz-VqLiK462mQLpWeKK7r@neo.fritz.box> <70c87dd8-e363-164f-3545-a615ede79b1d@b1-systems.de> Message-ID: Am 16.02.2018 um 17:24 schrieb Ralf Lang: > Am 16.02.2018 um 16:27 schrieb Jan Schneider: >> Zitat von Ralf Lang : >>> Am 17.10.2017 um 22:07 schrieb Ralf Lang: >>>> Hallo, >>>> >>>> lately I have been examining the REST and RPC topics discussed in >>>> January. >>>> >>>> Bad news is it doesn't quite fit and I am not sure if it's a good >>>> idea to cram it into the RPC framework. It looks more and more like >>>> Rest should sit on top of the inter-app API, separate from RPC. >>>> I've been haunted by the idea to try the other way around, to base everything, REST and RPC*, on an universal URI to implementation routing using Horde_Routes and Horde_Controller (and, using Horde_Core,? registry). It's all an application of HTTP in the end (and with some stetch, it can even wrap the internal API, though this might not be what we want) I will try to come up with some POC by end of week and then see if this is worth pursuing or a bad idea in practice. Regards Ralf -- Ralf Lang Linux Consultant / Developer Tel.: +49-170-6381563 Mail: lang at b1-systems.de B1 Systems GmbH Osterfeldstra?e 7 / 85088 Vohburg / http://www.b1-systems.de GF: Ralph Dehner / Unternehmenssitz: Vohburg / AG: Ingolstadt,HRB 3537 From birnbacs at gmail.com Tue Apr 3 23:05:57 2018 From: birnbacs at gmail.com (Sebastian Birnbach) Date: Wed, 4 Apr 2018 01:05:57 +0200 Subject: [dev] Create-Message-Link with subject? Message-ID: Turba offers a link for message composition out of an address book entry. A typical link might look like this: nobody at nowhere.loopback.edu I reproduced such links in my own application. Now, it would be nice to supply a message subject in the link as well. Is this possible? Thanks birnbacs From jan at horde.org Wed Apr 4 20:26:14 2018 From: jan at horde.org (Jan Schneider) Date: Wed, 04 Apr 2018 20:26:14 +0000 Subject: [dev] Create-Message-Link with subject? In-Reply-To: Message-ID: <20180404202614.Horde.3yTlsWmzHK3qsZZqtBh5Kov@neo.fritz.box> Zitat von Sebastian Birnbach : > Turba offers a link for message composition out of an address book entry. > A typical link might look like this: > > href="javascript:void(window.open('/imp/dynamic.php?page=compose&to=nobody%40nowhere.loopback.edu&popup=1','','width=820,height=610,status=1,scrollbars=yes,resizable=yes'))" > title="nobody at nowhere.loopback.edu">nobody at nowhere.loopback.edu > > I reproduced such links in my own application. Now, it would be nice > to supply a message subject in the link as well. Is this possible? > > Thanks > > birnbacs With the "subject" URL parameter. -- Jan Schneider The Horde Project https://www.horde.org/ From birnbacs at gmail.com Thu Apr 5 08:16:12 2018 From: birnbacs at gmail.com (Sebastian Birnbach) Date: Thu, 5 Apr 2018 10:16:12 +0200 Subject: [dev] Create-Message-Link with subject? In-Reply-To: <20180404202614.Horde.3yTlsWmzHK3qsZZqtBh5Kov@neo.fritz.box> References: <20180404202614.Horde.3yTlsWmzHK3qsZZqtBh5Kov@neo.fritz.box> Message-ID: 2018-04-04 22:26 GMT+02:00 Jan Schneider : > > Zitat von Sebastian Birnbach : > > > Turba offers a link for message composition out of an address book entry. >> A typical link might look like this: >> >> > title="nobody at nowhere.loopback.edu">nobody at nowhere.loopback.edu >> >> I reproduced such links in my own application. Now, it would be nice >> to supply a message subject in the link as well. Is this possible? >> >> Thanks >> >> birnbacs >> > > With the "subject" URL parameter. > Thanks Jan, javascript:void(window.open('/imp/dynamic.php?page=compose&to=nobody% 40nowhere.loopback.edu &subject=something&popup=1','','width=820,height=610,status=1,scrollbars=yes,resizable=yes')) does the trick. I noticed that cc and bcc are also available as options. Is there any documentation on this? I don't want to be missing any of the available cool features. birnbacs From jan at horde.org Thu Apr 5 18:08:36 2018 From: jan at horde.org (Jan Schneider) Date: Thu, 05 Apr 2018 18:08:36 +0000 Subject: [dev] Create-Message-Link with subject? In-Reply-To: References: <20180404202614.Horde.3yTlsWmzHK3qsZZqtBh5Kov@neo.fritz.box> Message-ID: <20180405180836.Horde.JG-f5OSTNOobTyeakdx-OwM@neo.fritz.box> Zitat von Sebastian Birnbach : > 2018-04-04 22:26 GMT+02:00 Jan Schneider : > >> >> Zitat von Sebastian Birnbach : >> >> >> Turba offers a link for message composition out of an address book entry. >>> A typical link might look like this: >>> >>> >> title="nobody at nowhere.loopback.edu">nobody at nowhere.loopback.edu >>> >>> I reproduced such links in my own application. Now, it would be nice >>> to supply a message subject in the link as well. Is this possible? >>> >>> Thanks >>> >>> birnbacs >>> >> >> With the "subject" URL parameter. >> > > Thanks Jan, > > javascript:void(window.open('/imp/dynamic.php?page=compose&to=nobody% > 40nowhere.loopback.edu > &subject=something&popup=1','','width=820,height=610,status=1,scrollbars=yes,resizable=yes')) > > does the trick. I noticed that cc and bcc are also available as options. Is > there any documentation on this? I don't want to be missing any of the > available cool features. > > birnbacs No, you need to look at the source. "body" exists too IIRC. -- Jan Schneider The Horde Project https://www.horde.org/