Provide new interface IJSONRequest used to mark requests with an Accept: application/json header.
Very early draft for exploring ideas on supporting application/json requests and possibly other type of requests.
Those requests can than explicitly be adapted to.
Provide new interface IJSONRequest used to mark requests with an Accept: application/json header.
Very early draft for exploring ideas on supporting application/json requests and possibly other type of requests. Those requests can than explicitly be adapted to.
Related PRs: https://github.com/zopefoundation/Zope/pull/845 https://github.com/zopefoundation/zope.publisher/pull/53
References the discussion plone.rest and how it intercepts the traversing chain for JSON requests: https://community.plone.org/t/json-application-messaging-in-plone-core/12353