* SAAS-1161 - refactor backend so episodes are loaded separately from podcast data to speed up loading and improve API readability

* Decouple imported and station podcast behaviour on the frontend
This commit is contained in:
Duncan Sommerville 2015-11-02 18:07:16 -05:00
parent c4be9aebb2
commit def8e7280b
9 changed files with 312 additions and 256 deletions

View file

@ -40,6 +40,7 @@ class Rest_PodcastEpisodesController extends Zend_Rest_Controller
$this->getResponse()
->setHttpResponseCode(201)
->setHeader('X-TOTAL-COUNT', $totalPodcastEpisodesCount)
->appendBody(json_encode($this->_service->getPodcastEpisodes($id, $offset, $limit, $sortColumn, $sortDir)));
} catch (PodcastNotFoundException $e) {