Apigility module providing XML content-negotiation features
This package is auto-updated.
Last update: 2021-10-05 14:50:05 UTC
This is an Apigility module to provide XML content-negotiation features. It allows for the rendering of payloads in XML and HAL+XML formats. It also supports ingesting HTTP bodies that are in XML format if the content-type is
The response type is based on Accept header:
application/*+xml) renders content in XML
application/*+json) renders content in HalJson.
Install the module using composer:
$ composer require akrabat/apigility-xml
return [ ..., 'Akrabat\ApigilityXml', .... ]
In the Apigility admin, select your API and change Content Negotiation Selector to HalJsonXML
application/xmlto Accept whitelist and Content-Type whitelist. Add other headers if needed.
This module is a fork of https://github.com/diegograssato/apigility-xml-negotiation which appears to be a fork of https://github.com/zpetr/apigility-xmlnegotiation which was inspired by the https://github.com/markushausammann's ApigilityXml.
Thanks to everyone who came before me!