WordPress.org

WordPRess GSoC Trac

Opened 11 months ago

Closed 7 months ago

#272 closed enhancement (fixed)

Create media and attachment endpoints

Reported by: rmccue Owned by: rmccue
Milestone: 2013 Final (1.0) Priority: major
Component: JSON REST API Keywords:
Cc:

Description

Tracking ticket for week 12.

Change History (13)

comment:1 bpetty10 months ago

  • Milestone set to 2013 Final (1.0)

comment:2 rmccue7 months ago

In 2268:

First pass at media

See #272. This has been a long time coming, and it's finally at a point where
I'm happy to push it out. Good luck.

comment:3 rmccue7 months ago

In 2272:

Allow passing Content-MD5 headers

This is only global and cannot be attached to the part in a multipart request.
I do love PHP some times.

See #272

comment:5 rmccue7 months ago

In 2276:

Enable setting post thumbnails on posts

See #272

comment:6 rmccue7 months ago

In 2278:

Check that we can read posts correctly

See #272

comment:7 rmccue7 months ago

In 2279:

Show attachments with the inherit status

This is kind of hacky, but means we don't have to override the whole getPosts()
method from the posts endpoint instead.

See #272

comment:8 rmccue7 months ago

In 2282:

Override the links for media

See #272

comment:9 rmccue7 months ago

In 2283:

Send a 201 Created header with new attachments

See #272

comment:10 rmccue7 months ago

In 2289:

Only check the post parent if it exists

See #272

comment:11 rmccue7 months ago

In 2290:

Unattached attachments are assumed to be public

See #272

comment:12 rmccue7 months ago

In 2294:

Use the correct URI for media endpoints

See #272

comment:13 rmccue7 months ago

  • Resolution set to fixed
  • Status changed from new to closed

This is feature complete.

Note: See TracTickets for help on using tickets.