Ghost/core/test/unit
Hannah Wolfe c02ebb0dcf Refactor API arguments
closes #2610, refs #2697

- cleanup API index.js, and add docs
- all API methods take consistent arguments: object & options
- browse, read, destroy take options, edit and add take object and options
- the context is passed as part of options, meaning no more .call
  everywhere
- destroy expects an object, rather than an id all the way down to the model layer
- route params such as :id, :slug, and :key are passed as an option & used
  to perform reads, updates and deletes where possible - settings / themes
  may need work here still
- HTTP posts api can find a post by slug
- Add API utils for checkData
2014-05-15 10:41:05 +01:00
..
admin_spec.js Cleanup naming & order in admin controller 2014-02-25 10:51:12 +00:00
apps_spec.js updated error handling on all mocha tests 2014-05-05 21:58:58 +01:00
bootstrap_spec.js updated error handling on all mocha tests 2014-05-05 21:58:58 +01:00
config_spec.js updated error handling on all mocha tests 2014-05-05 21:58:58 +01:00
errorHandling_spec.js Add distinct error classes 2014-05-09 12:11:29 +02:00
export_spec.js Add distinct error classes 2014-05-09 12:11:29 +02:00
filters_spec.js updated error handling on all mocha tests 2014-05-05 21:58:58 +01:00
frontend_spec.js Refactor API arguments 2014-05-15 10:41:05 +01:00
import_spec.js Add distinct error classes 2014-05-09 12:11:29 +02:00
mail_spec.js updated error handling on all mocha tests 2014-05-05 21:58:58 +01:00
middleware_spec.js Proper endpoints for persistent notifications 2014-05-06 00:05:14 +02:00
permissions_spec.js Refactor API arguments 2014-05-15 10:41:05 +01:00
server_helpers_index_spec.js updated error handling on all mocha tests 2014-05-05 21:58:58 +01:00
server_helpers_template_spec.js Custom Page Templates 2014-02-22 21:17:02 -05:00
server_spec.js Remove ghost.js 2013-12-07 10:10:02 -05:00
showdown_client_integrated_spec.js Improving the showdown extensions 2014-03-20 17:08:13 +00:00
showdown_ghostGFM_spec.js Improving the showdown extensions 2014-03-20 17:08:13 +00:00
showdown_ghostimagepreview_spec.js Improving the showdown extensions 2014-03-20 17:08:13 +00:00
storage_localfilesystem_spec.js updated error handling on all mocha tests 2014-05-05 21:58:58 +01:00
xmlrpc_spec.js updated error handling on all mocha tests 2014-05-05 21:58:58 +01:00