first-pass exploration, all API endpoints covered.

Now to refactor and bring under better coverage.