ARI: Add mailboxes resource for controlling and polling external MWI
authorJonathan Rose <jrose@digium.com>
Tue, 14 Jan 2014 23:44:57 +0000 (23:44 +0000)
committerJonathan Rose <jrose@digium.com>
Tue, 14 Jan 2014 23:44:57 +0000 (23:44 +0000)
commitaa9db707c56fa673560e25663f581954a66f3974
treea539c9a84ad0679612606f15728bd5049ff2e441
parented0d083596bd22bf772433ac949f243dfc5fb28c
ARI: Add mailboxes resource for controlling and polling external MWI

Adds the following AMI commands:
PUT mailboxes/mailboxName
    modifies mailbox state and implicitly creates new mailboxes
GET mailboxes/mailboxName
    retrieves a JSON representation of a single mailbox if it exists
GET mailboxes
    retrieves a JSON array of all mailboxes
DELETE mailbox/mailboxName
    deletes a mailbox
Note that res_mwi_external must be loaded for these functions to
actually do anything.

Review: https://reviewboard.asterisk.org/r/3117/
........

Merged revisions 405553 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@405554 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/stasis_app_mailbox.h [new file with mode: 0644]
res/ari.make
res/ari/ari_model_validators.c
res/ari/ari_model_validators.h
res/ari/resource_mailboxes.c [new file with mode: 0644]
res/ari/resource_mailboxes.h [new file with mode: 0644]
res/res_ari_mailboxes.c [new file with mode: 0644]
res/res_stasis_mailbox.c [new file with mode: 0644]
res/res_stasis_mailbox.exports.in [new file with mode: 0644]
rest-api/api-docs/mailboxes.json [new file with mode: 0644]
rest-api/resources.json