Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Conversation

@danielbachhuber
Copy link
Member

Related #2065 (comment)
See #924

@danielbachhuber
Copy link
Member Author

@WP-API/amigos #reviewmerge

@kadamwhite
Copy link
Contributor

What happens with /posts?slug=oneslug&filter[name]=another, I assume we just get an empty response? I'm AFK atm so I'm not sure what we did with e.g. paging filter parameters, whether those could continue to be used in filter once they made their way to a top-level parameter

@danielbachhuber
Copy link
Member Author

What happens with /posts?slug=oneslug&filter[name]=another, I assume we just get an empty response?

filter[name] would take priority over slug, so the query would use another as the slug.

danielbachhuber added a commit that referenced this pull request Jan 22, 2016
Add `slug` param for `GET /wp/v2/posts`
@danielbachhuber danielbachhuber merged commit cf6f1bb into develop Jan 22, 2016
@danielbachhuber danielbachhuber deleted the 924-posts-slug branch January 22, 2016 20:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants