ARI: Implement /recordings/stored API's
authorDavid M. Lee <dlee@digium.com>
Fri, 30 Aug 2013 13:28:50 +0000 (13:28 +0000)
committerDavid M. Lee <dlee@digium.com>
Fri, 30 Aug 2013 13:28:50 +0000 (13:28 +0000)
commit7f547872e41ee53ad85a5b0820a8c0ff7c7f1c04
treea86c66df9f37f9de9ffc4f3db3c19de51cb4046a
parent51cd0ea28b143d6b686831b101e76a942fbbcd90
ARI: Implement /recordings/stored API's

his patch implements the ARI API's for stored recordings. While the
original task only specified deleting a recording, it was simple
enough to implement the GET for all recordings, and for an individual
recording.

The recording playback operation was modified to use the same code for
accessing the recording as the REST API, so that they will behave
consistently.

There were several problems with the api-docs that were also fixed,
bringing the ARI spec in line with the implementation. There were some
'wishful thinking' fields on the stored recording model (duration and
timestamp) that were removed, because I ended up not implementing a
metadata file to go along with the recording to store such information.

The GET /recordings/live operation was removed, since it's not really
that useful to get a list of all recordings that are currently going
on in the system. (At least, if we did that, we'd probably want to
also list all of the current playbacks. Which seems weird.)

(closes issue ASTERISK-21582)
Review: https://reviewboard.asterisk.org/r/2693/
........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@397988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
include/asterisk/stasis_app_recording.h
res/Makefile
res/ari/ari_model_validators.c
res/ari/ari_model_validators.h
res/ari/resource_recordings.c
res/ari/resource_recordings.h
res/res_ari_recordings.c
res/res_stasis_playback.c
res/res_stasis_recording.c
res/stasis_recording/stored.c [new file with mode: 0644]
rest-api/api-docs/recordings.json