mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 16:14:25 +03:00
51ac3f6532
refs #2758 - Post, Tag & User API methods are refactored to use pipeline - Each functional code block is a named task function - Each function takes options, manipulates it, and returns options back - Tasks like permissions can reject if they don't pass, causing the pipeline to fail - Tasks like validating and converting options might be abstracted out into utils - the same for each endpoint - Tasks like the data call can be extremely complex if needs be (like for some user endpoints) - Option validation is mostly factored out to utils - Option conversion is factored out to utils - API utils have 100% test coverage - Minor updates to inline docs, more to do here |
||
---|---|---|
.. | ||
middleware | ||
server_helpers | ||
api_utils_spec.js | ||
apps_spec.js | ||
config_spec.js | ||
error_handling_spec.js | ||
filters_spec.js | ||
frontend_spec.js | ||
importer_spec.js | ||
mail_spec.js | ||
middleware_spec.js | ||
migration_spec.js | ||
models_pagination_spec.js | ||
permissions_spec.js | ||
rss_spec.js | ||
server_helpers_index_spec.js | ||
server_helpers_template_spec.js | ||
server_spec.js | ||
server_utils_spec.js | ||
showdown_client_integrated_spec.js | ||
sitemap_spec.js | ||
storage_local-file-store_spec.js | ||
xmlrpc_spec.js |