Problem/Motivation
See #3004582-21: Make JSON API Extras 2.x (next release: 2.10) compatible with JSON API 2.0-beta2 for details.
Proposed resolution
Add ResourceTypeRepository::createResourceType().
Remaining tasks
Review.
User interface changes
None.
API changes
None.
Data model changes
None.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 3006270-9.patch | 4.51 KB | wim leers |
| #9 | interdiff.txt | 1.43 KB | wim leers |
| #4 | 3006270-4.patch | 3.15 KB | wim leers |
| #4 | interdiff.txt | 1.07 KB | wim leers |
| #2 | jsonapi_createresourcetype_1x.patch | 2.38 KB | wim leers |
Comments
Comment #2
wim leersThe 1.x patch is entirely optional. IMHO we should not change this in 1.x. The 1.x change is also not necessary for #3004582: Make JSON API Extras 2.x (next release: 2.10) compatible with JSON API 2.0-beta2. It would make things nicer in
jsonapi_extras, but relying on it still means that existing 1.x sites have to updatejsonapifirst, before they can updatejsonapi_extras. This is not desirable.Comment #4
wim leersFailed for the missing docblock.
Comment #5
gabesullice+1 to the 2.x only patch.
I've had at the back of my mind for a while that perhaps we should have factories for all of our value objects.
Overriding or decorating those factories would then take the place of overriding normalizers. This is a step in that direction it seems.
Comment #7
wim leersCI job went missing. DrupalCI is drunk. Retesting.
Comment #9
wim leersComment #10
gabesulliceComment #12
gabesulliceDone. Thanks!
Comment #13
e0ipso+1
Thanks for the work and the review!