TryGhost/Ghost — pull request #1716 by ErisDS (2013-12-19 22:52:09+00:00)
Title: API refactor / cleanup

closes #1303

- removed where and orderBy from being passed from the API through to bookshelf, and ultimately knex
- ordering is now consistent across both front and backend, which fixes #1303
- validated / cleaned up all the API parameters
- added API tests for the status and staticPages parameters