0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00
ghost/core/server/api
Hannah Wolfe 51ac3f6532 Refactor to using pipeline for the API
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
2015-06-28 22:52:31 +01:00
..
authentication.js Use extends correctly & consistently 2015-06-25 19:56:27 +01:00
configuration.js finish up password protection 2015-05-12 12:02:18 -06:00
db.js Refactor importer with tests 2014-12-17 18:22:39 +00:00
index.js Improve API error handling 2015-06-15 10:08:30 +01:00
mail.js Removes objectTypeModelMap to reduce circular dependency. 2014-10-27 20:48:22 -04:00
notifications.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
posts.js Refactor to using pipeline for the API 2015-06-28 22:52:31 +01:00
roles.js Fix up filtering implementation 2015-05-10 20:48:32 -05:00
settings.js Make the {{navigation}} helper global 2015-02-28 12:53:00 +00:00
slugs.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
tags.js Refactor to using pipeline for the API 2015-06-28 22:52:31 +01:00
themes.js Add jscs task to grunt file and clean up files to adhere to jscs rules. 2014-09-17 21:44:29 -04:00
upload.js Add support for zip import 2014-12-10 20:21:06 +00:00
users.js Refactor to using pipeline for the API 2015-06-28 22:52:31 +01:00
utils.js Refactor to using pipeline for the API 2015-06-28 22:52:31 +01:00