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

Conversation

@scottopolis
Copy link

This adds the sizes, but I wasn't sure how to restrict this to only show when using ?_embed. I'd be happy to edit as necessary.

This adds the sizes, but I wasn't sure how to restrict this to only show when using ?_embed.  I'd be happy to edit as necessary.
@scottopolis
Copy link
Author

See comments on #1563

@scottopolis
Copy link
Author

@rmccue @rachelbaker Can I get your opinion this? Right now we have to make a separate HTTP request to get the post thumbnails when listing posts. Trying to include src urls in the _embed object.

Thanks!

@danielbachhuber
Copy link
Member

We aren't going to change the featured_image attribute on the Post resource to return an object instead of an ID. However, we can make sure the linked object includes the sizes array: #1667

To get embedded representations of linked objects, you can use ?_embed on any GET request.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants