Re: New feature: HTTP API
Not all commands are included, unfortunately. Also, the list only shows commands that are available with doveadm as per configuration.
Aki
Fixed hopefully in https://github.com/dovecot/core/commit/76537b1991e7815c7a867a997f7fa2b3c1741...
Aki
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":"user@example.org","mailbox":["INBOX/TEST"]},c01]]' https://xxx.xxx.xxx.xxx.:8080/doveadm/v1
and also
curl -k -H "Content-Type: application/json" -H "Authorization: Basic secret" -d '[["mailboxList",{"user":"user@example.org","mailboxMask":["INBOX/TEST"]},c01]]' https://xxx.xxx.xxx.xxx.:8080/doveadm/v1
doesn't work.
It /should/ create INBOX/TEST -- but doveadm always says it's "Invalid JSON input".
What am I doing wrong?
Peer
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: 030 / 405051-42 Fax: 030 / 405051-19
Zwangsangaben lt. §35a GmbHG: HRB 93818 B / Amtsgericht Berlin-Charlottenburg, Geschäftsführer: Peer Heinlein -- Sitz: Berlin
participants (4)
-
aki.tuomi@dovecot.fi
-
Michael Slusarz
-
Peer Heinlein
-
Tom Sommer