0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/test/unit/api/v2/utils
Katharina Irrgang dfd350bd69
Cleaned up Admin API v2 posts/pages input serializer (#10516)
no issue

- make use of filter instead of status=all or data.page
- nql was designed to filter data on database layer
- do not break v0.1
- we just got rid of the "status" query param, you should use the filter instead
- get rid of the ugly condition to remove page field if "fields" param was used
- allow filtering on model layer for "findOne"
  - do not allow filtering for "findOne" on API layer for now
  - the API controller defines what is allowed
  - the model layer can allow more by default
  - we can re-use the powerful filter logic without adding hacks
2019-02-22 12:07:34 +01:00
..
serializers Cleaned up Admin API v2 posts/pages input serializer (#10516) 2019-02-22 12:07:34 +01:00
validators/input Separated pages & posts in Admin API v2 (#10494) 2019-02-22 10:17:14 +07:00
index_spec.js Updated Content API to use members plans to determine permission (#10483) 2019-02-14 18:17:02 +01:00