WIP for JSON, first patch attached. Reading seems to work already, write support todo.

Patch also starts to establish the foundation for support entity-references not only by ID, however the current architecture seems to have some problems. Maybe we should move the reference and data array generation out of the base formatter in the resource class, as the resource class has to understand the data array format already for create() and update().

CommentFileSizeAuthor
restws_uuid.patch3.45 KBfago

Comments

fago’s picture

>..however the current architecture seems to have some problems.

I take that back, it's fine. It's up to the format to resolve resourceID mappings and to pass on a valid $data array structure to the resource. I also discovered, there is already #1355220: Accept resource references on input - so I'll base my work on that.

fago’s picture

Status: Needs work » Postponed
klausi’s picture

Status: Postponed » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.