akrabat/apigility-xml 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

akrabat/apigility-xml

Composer 安装命令:

composer require akrabat/apigility-xml

包简介

Apigility module providing XML content-negotiation features

README 文档

README

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 application/xml

The response type is based on Accept header:

  • application/xml (or application/*+xml) renders content in XML
  • application/hal+json (or application/*+json) renders content in HalJson.

Installation

  1. Install the module using composer:

     $ composer require akrabat/apigility-xml
    
  2. Add Akrabat\ApigilityXml to modules.config.php:

     return [
     	...,
         'Akrabat\ApigilityXml',
         ....
     ]
    
  3. In the Apigility admin, select your API and change Content Negotiation Selector to HalJsonXML

  4. Add application/xml to Accept whitelist and Content-Type whitelist. Add other headers if needed.

  5. Save configuration

Credits

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!

统计信息

  • 总下载量: 106
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-02-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固