Ghost/core/server/api
kirrg001 bda76acba6 Extended the API object validation
refs #9548

- do not forward `tag.parent` to the model layer
  - the model layer should only know `tag.parent_id`
  - and the API should only expose `tag.parent` (this is an API feature)
  - currently Ghost has a mixture of using `toJSON` and the API validation layer for this
  - we just continue with this for now (no time to fix this)
- disallow sending nested-nested relations
  - unsupported
  - see comment for more information
  - this can cause problems with calling `hasChanged` on relations
- add unit tests
2018-04-05 18:51:58 +02:00
..
authentication.js Improved forwarding model options in the API layer (#9380) 2018-01-09 13:26:09 +01:00
clients.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
configuration.js Resurrect the old alpha Koenig editor (#9277) 2018-01-18 15:43:22 +00:00
db.js Backup endpoint improvements (#9365) 2018-01-11 16:03:21 +01:00
index.js Moved utils/url.js to UrlService 2017-12-11 20:05:33 +01:00
invites.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
mail.js Removed html usage in error messages (#9444) 2018-02-07 09:35:48 +01:00
notifications.js 🐛 Fixed showing old release notifications in the about page 2018-01-18 12:19:55 +01:00
posts.js Multiple authors (#9426) 2018-03-27 15:16:15 +01:00
redirects.js Moved validateRedirects helper to data/validation 2017-12-14 11:55:10 +01:00
roles.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
schedules.js Moved zip folder, read csv and package-json to lib/fs 2017-12-14 22:07:53 +01:00
settings.js Moved utils constants to lib/constants 2017-12-14 14:13:40 +01:00
slack.js Moved utils constants to lib/constants 2017-12-14 14:13:40 +01:00
slugs.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
subscribers.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
tags.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
themes.js 🐛 Reload translations if active theme get's overridden (#9392) 2018-01-12 09:19:28 +00:00
upload.js Moved utils constants to lib/constants 2017-12-14 14:13:40 +01:00
users.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00
utils.js Extended the API object validation 2018-04-05 18:51:58 +02:00
webhooks.js Sorted out the mixed usages of include and withRelated (#9425) 2018-02-15 10:53:53 +01:00