Re: New feature: HTTP API

2016-05-24 Thread Peer Heinlein
Am 24.05.2016 um 20:38 schrieb Michael Slusarz: > The identifier is a JSON string (c01) and needs to be in quotes, at a minimum. Yes, that's it. Sorry, I was too blind to see that. Thanks. Peer -- Heinlein Support GmbH Schwedter Str. 8/9b, 10119 Berlin http://www.heinlein-support.de Tel:

Re: New feature: HTTP API

2016-05-24 Thread Michael Slusarz
> > On May 24, 2016 at 12:20 PM Peer Heinlein > wrote: > > Thanks for the new HTTP API. > > I get the API with some commands up and running, but I'm still not able > to create folder. > > curl -k -H "Content-Type: application/json" -H

Re: New feature: HTTP API

2016-05-24 Thread Peer Heinlein
Thanks for the new HTTP API. I get the API with some commands up and running, but I'm still not able to create folder. curl -k -H "Content-Type: application/json" -H "Authorization: Basic secret" -d '[["mailboxCreate",{"user":"u...@example.org","mailbox":["INBOX/TEST"]},c01]]'

Re: New feature: HTTP API

2016-05-17 Thread Tom Sommer
On 2016-04-05 15:35, aki.tu...@dovecot.fi wrote: On April 5, 2016 at 12:24 PM aki.tu...@dovecot.fi wrote: > On April 5, 2016 at 9:57 AM Tom Sommer wrote: > > > On 2016-04-05 08:44, aki.tu...@dovecot.fi wrote: > >> On April 5, 2016 at 9:27 AM Tom Sommer

Re: New feature: HTTP API

2016-04-05 Thread aki . tuomi
> On April 5, 2016 at 12:24 PM aki.tu...@dovecot.fi wrote: > > > > > On April 5, 2016 at 9:57 AM Tom Sommer wrote: > > > > > > On 2016-04-05 08:44, aki.tu...@dovecot.fi wrote: > > >> On April 5, 2016 at 9:27 AM Tom Sommer wrote: > > >> > > >> > > >>

Re: New feature: HTTP API

2016-04-05 Thread aki . tuomi
> On April 5, 2016 at 9:57 AM Tom Sommer wrote: > > > On 2016-04-05 08:44, aki.tu...@dovecot.fi wrote: > >> On April 5, 2016 at 9:27 AM Tom Sommer wrote: > >> > >> > >> On 2016-04-04 20:22, aki.tu...@dovecot.fi wrote: > >> > >> > Since the API is still

Re: New feature: HTTP API

2016-04-05 Thread Tom Sommer
On 2016-04-05 08:44, aki.tu...@dovecot.fi wrote: On April 5, 2016 at 9:27 AM Tom Sommer wrote: On 2016-04-04 20:22, aki.tu...@dovecot.fi wrote: > Since the API is still a little beta, it will not return anything in > case > doveadm does not like the arguments (that is,

Re: New feature: HTTP API

2016-04-05 Thread aki . tuomi
> On April 5, 2016 at 9:27 AM Tom Sommer wrote: > > > On 2016-04-04 20:22, aki.tu...@dovecot.fi wrote: > > > Since the API is still a little beta, it will not return anything in > > case > > doveadm does not like the arguments (that is, calls i_fatal). Also, > > success

Re: New feature: HTTP API

2016-04-05 Thread Tom Sommer
On 2016-04-04 20:22, aki.tu...@dovecot.fi wrote: A simple 1-line curl-example in the docs would do wonders :) http://wiki2.dovecot.org/Design/DoveadmProtocol/HTTP an example command would be curl -H "Content-Type: application/json" -H "Authorization: Basic username:password>" -d

Re: New feature: HTTP API

2016-04-04 Thread aki . tuomi
> On April 4, 2016 at 5:18 PM Tom Sommer wrote: > > > > On 2016-02-20 17:09, aki.tu...@dovecot.fi wrote: > > > To use the API, you can go to http://host:8080/doveadm. > > The documentation says http://host:8080/doveadm/v1 which is it? > > > GET request will print > > out

Re: New feature: HTTP API

2016-04-04 Thread Tom Sommer
On 2016-02-20 17:09, aki.tu...@dovecot.fi wrote: To use the API, you can go to http://host:8080/doveadm. The documentation says http://host:8080/doveadm/v1 which is it? GET request will print out possible commands, along with their parameters. If you have set API KEY, you need to include

New feature: HTTP API

2016-02-20 Thread aki . tuomi
Hi all! We are bringing out HTTP API for doveadm-server in master HEAD. This feature is experimental, and can be expected to have bugs in it and might not always work. If you feel like trying it out though, you can enable it in your configuration file: doveadm_api_key = some-string service