mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-07 11:30:55 +03:00
c02ebb0dcf
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 |
||
---|---|---|
.. | ||
admin_spec.js | ||
apps_spec.js | ||
bootstrap_spec.js | ||
config_spec.js | ||
errorHandling_spec.js | ||
export_spec.js | ||
filters_spec.js | ||
frontend_spec.js | ||
import_spec.js | ||
mail_spec.js | ||
middleware_spec.js | ||
permissions_spec.js | ||
server_helpers_index_spec.js | ||
server_helpers_template_spec.js | ||
server_spec.js | ||
showdown_client_integrated_spec.js | ||
showdown_ghostGFM_spec.js | ||
showdown_ghostimagepreview_spec.js | ||
storage_localfilesystem_spec.js | ||
xmlrpc_spec.js |