-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API: Add featured
filter option to posts.browse
#5152
Comments
Taking care of this one :) |
@edsadr let us know if you need a hand - you know where to find us :) |
@ErisDS changes are done but... just one test failing.. I will work on it today to send the PR ... and we will have to discuss some stuff but lets do it after push the code |
Closes TryGhost#5152, TryGhost#5093, TryGhost#5151 - Adds `featured` filter option to posts.browse method modifying the model to take it too - Implements offset pagination method to posts.browse method modifying the model to work with it too but still supporting the `page` parameter - Removes `staticPages` parameter in options filter to allow using the `page` parameter with options `all` `true` or `false
@ErisDS here is what I would like to propose, with #5093 you are requesting to stop using I wanted to do it this way as I think is a way more flexible and will also support the new Let me know |
- Adds `featured` filter option to posts.browse method modifying the model to take it too
- Adds `featured` filter option to posts.browse method modifying the model to take it too
- Adds `featured` filter option to posts.browse method modifying the model to take it too
Closes TryGhost#5152 - Adds `featured` filter option to posts.browse method modifying the model to take it too
Currently the
api.posts.browse
endpoint takes the following options:There is an open issue to swap
page
foroffset
And another issue to swap
staticPages
forpage
as well as add generally better support for querying pages.It would also be good to be able to filter posts by whether or not they are featured:
api.posts.browse({featured: true})
orapi.posts.browse({featured: false})
Making this work involves adding this as an allowed option in the model.
The text was updated successfully, but these errors were encountered: