Yesterday I was looking at both WordPress REST APIs (wordpress.org and wordpress.com) and I found something funny with the last one.
If you are using wp.com REST API it seems that you can’t make a GET /sites/$site/media call without authentication, which is bad.
Also, when you retrieve posts using a GET /sites/$site/posts call, the attachment attribute will contain up to 20 attachments, no more, as explained below.
parameter
type
description
attachment
Object
Hash of post attachments (keyed by attachment ID). Returns the most recent 20 attachments. Use the /sites/$site/media endpoint to query the attachments beyond the default of 20 that are returned here.
I’m going to investigate if there’s something else that can be done, but at the moment it seems that the only way to get all media items in a post (if it has more than 20) is to use authentication.
Yesterday I was working in a communication with @SantosGuillamot and @Reyes and today I’ll try to merge the npm run dev script and help @David and @orballo with the Settings API, the Source API, Overmind and TypeScript.
I want to take a look at the way we produce bundles to see if we can make one client bundle per mode and per site as outlined here: How to resolve dynamic imports in Webpack
Yesterday I managed to get different client bundles working perfectly and I created the Alpha Release Roadmap.
Today I’ll try to finish some of the tasks of the Roadmap, maybe fix the server bundle for serverless and build and serve scripts. I also want to work with @David in the Source API.
Yesterday I did some PRs (build and serve scripts, serverless, sever static files from koa…) and today I’ll be making the examples folder work and thinking how can we test the scripts and bundles.