sanger/lims-api — pull request #10 by maxigit (2012-08-20 17:16:00+00:00)
Title: [fixes #31359335] Implemente navigation action(+pagination)

Needs to be tested in real life.

compile.

[WIP] Add 'follow_link' to specs

To follow 'next' and 'previous' pages.

Refactors CoreResourcePage specs.

Update CoreResourcePage. Specs compile but fail.

Add page number computation and state machine to Page

test regarding number of pages pass.
JSON fails.

Spec run but fails

first and last index work (with spec.)

Empty model spec pass as well.

Add Context#resource_for

Pass mime-type to encoder

Almost work

9 item displayed instead of 10.

Work but model instead of models (we need to decide)

!!! All spec pass (for CoreResourcePage)