Skip to content

support for POST requests of content-type application/json

JonGold requested to merge JonGold/apirestlog:json-support into 2.x

This is a companion to https://github.com/civicrm/civicrm-core/pull/30678, which adds the support for POST requests of type application/json in core.

application/json is very convenient with, e.g., Form Processor, because you can pass arrays in JSON. With url-encoding, you can pass a string like [1,2,3,4], which adds an additional step for each field that can take an array.

There's no real harm in merging this now, but it makes the most sense IMO to wait until the upstream patch is merged.

Merge request reports