max_items depends on header application/vnd.phraseanet.story-paginate

This commit is contained in:
aynsix
2019-11-28 18:15:55 +04:00
parent 4acc98574b
commit c9356ec206
4 changed files with 19 additions and 7 deletions

View File

@@ -25,6 +25,8 @@ class V1 extends Api implements ControllerProviderInterface, ServiceProviderInte
{
const VERSION = '2.0.0';
const HEADER_ACCEPT_STORY_PAGINATE = 'application/vnd.phraseanet.story-paginate';
public static $extendedContentTypes = [
'json' => ['application/vnd.phraseanet.record-extended+json'],
'yaml' => ['application/vnd.phraseanet.record-extended+yaml'],