[x] Implement html and css for pagination. Preferable: A generic component TIPS: Use the pagination component that lies within the force of AngularUI @ksundmyhr
[x] Implement architecture. In model in repository. Optional query string param in repository's Find-function. @kennethlynne
[x] Return useful data from the API: Preferably something like this:
[x] Implement a middleware that decorates the returned collection with a metadataobject with eg. number of items in the collection. @AlmaasAre Perhaps a Metadata-class in config folder. NOPE, CHUCK FUKIN TESTA! Did this: Added a colleciton in /response. If you want to add metadata to an array of objects, write res.collection(DATA);
[x] Implement unwrapping of the metadata object in models @kennethlynne
Find a way to implement the generic pagination.
E.g: On the admin page.
The videos returned from the API could be
{ numberOfItems|OR SOMETHING ELSE: 123, items:[{ title:'bananas', description:'beijing' }, { title:'horses', description: 'in beijing' }] }
@AREALMAAS