You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the ApiApplication object maps the format application/json to the type json (in the __construct method).
This means that incoming calls with this type can't make use of the (excellent) Jsonapi class.
Simply removing the line would allow new routes to define their own map or map json to jsonapi.
Or addFormatMap could be allowed to replace existing maps.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently the ApiApplication object maps the format application/json to the type json (in the __construct method).
This means that incoming calls with this type can't make use of the (excellent) Jsonapi class.
Simply removing the line would allow new routes to define their own map or map json to jsonapi.
Or addFormatMap could be allowed to replace existing maps.
Would this be a useful improvement?
What say you?
Beta Was this translation helpful? Give feedback.
All reactions