0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00
ghost/core/server
kirrg001 b25da62cca Ensured defaults when creating resources
no issue

- the model & api layer suffered from missing fields when creating resources
- usually there is only a handful of fields which are required to insert a resource
- the other fields are nullable and/or get defaults assigned
- the API only returned the configured default fields and the fields you have sent to the API
  - this resulted in a response with missing fields
- if you have listend on "created" event, the same happend
  - you received a model with missing fields
- we now set the undefined fields to null on purpose to ensure a full model for both cases

@NOTE:
There is no endpoint to serve webhooks (not for v0.1, not for v2).
Exposing the secret is required if an integration fetches it's api keys and it's webhooks.
The secret is currently un-used and not implemented.
2019-02-07 20:20:10 +01:00
..
adapters Bumped knex & bookshelf dependencies (#10404) 2019-01-21 21:53:11 +01:00
api Redefined context.integration 2019-02-06 21:36:09 +01:00
apps Removed members internal app (#10379) 2019-01-17 12:03:40 +01:00
config Added initial subscription support with stripe to Members API (#10460) 2019-02-07 10:41:39 +01:00
data Added permissions for actions including migration 2019-02-06 18:59:09 +01:00
helpers Updated messaging around {{get}} helper access 2019-02-04 17:58:35 +00:00
lib Added initial subscription support with stripe to Members API (#10460) 2019-02-07 10:41:39 +01:00
models Ensured defaults when creating resources 2019-02-07 20:20:10 +01:00
public Removed change frequency and priority fields from sitemap generator (#9771) 2018-09-24 19:16:31 +02:00
services Added initial subscription support with stripe to Members API (#10460) 2019-02-07 10:41:39 +01:00
translations Updated messaging around {{get}} helper access 2019-02-04 17:58:35 +00:00
views Aliased {{@blog}} as {{@site}} in the theme API 2019-01-04 12:17:32 +00:00
web Update admin redirects 2019-02-07 17:59:35 +07:00
analytics-events.js Added back "theme.uploaded" analytics event (#10450) 2019-02-05 17:38:40 +01:00
filters.js Switched to eslint-plugin-ghost (#9835) 2018-09-17 20:49:30 +02:00
ghost-server.js Switched to eslint-plugin-ghost (#9835) 2018-09-17 20:49:30 +02:00
index.js De-aliased api versions in codebase (#10375) 2019-01-14 19:49:55 +01:00
overrides.js Disabled bluebird debug logs 2018-08-13 14:01:31 +02:00
update-check.js De-aliased api versions in codebase (#10375) 2019-01-14 19:49:55 +01:00