其他分享
首页 > 其他分享> > 敏捷性不保存文档字段

敏捷性不保存文档字段

作者:互联网

我对适应性有问题.

当我保存REST服务的文档时,仅保存描述整个REST服务的字段.

例如,我试图保存响应正文,但没有成功.

发布前我检查过的一些事项:

>我禁用了opcache和apc.
>按保存按钮后的所有请求均为200 OK.
>我尝试运行作曲家更新,但未成功.

我的composer.json

json
{
    “ name”:“ zfcampus / zf-apigility-skeleton”,
    “描述”:“骨架应用程序”,
    “ type”:“图书馆”,
    “许可证”:“ BSD-3-条款”,
    “关键字”:[
        “ api”,
        “适应性”,
        “框架”,
        “ zf2”
    ],
    “首页”:“ http://apigility.org/”,
    “支持”:{
        “电子邮件”:“ apigility-users@zend.com”,
        “ irc”:“ irc://irc.freenode.net/apigility”,
        “源”:“ https://github.com/zfcampus/zf-apigility-skeleton”,
        “问题”:“ https://github.com/zfcampus/zf-apigility-skeleton/issues”
    },
    “配置”:{
        “处理超时”:5000
    },
    “额外”:{
        “分支别名”:{
            “ dev-master”:“ 1.0-dev”,
            “ dev-develop”:“ 1.1-dev”
        }
    },
    “要求”:{
        “ php”:“> = 5.4.8”,
        “ zendframework / zendframework”:“〜2.3”,
         “ zfcampus / zf-apigility”:“〜1.0-dev”,
        “ zfcampus / zf-apigility-documentation”:“〜1.0”,
        “ zfcampus / zf-development-mode”:“〜2.0”,
        “ doctrine / doctrine-orm-module”:“ 0. *”,
        “猎犬/学说数据夹具模块”:“ 0.0.*”,
        “ facebook / php-sdk-v4”:“ 4.0.*”,
        “ zfr / zfr-cors”:“ 1. *”,
        “ zfcampus / zf-apigility-documentation-swagger”:“ 1.0.*@dev”
    },
    “ require-dev”:{
        “ zendframework / zftool”:“ dev-master”,
        “ zendframework / zend-developer-tools”:“ dev-master”,
        “ zfcampus / zf-apigility-admin”:“〜1.0”,
        “ zfcampus / zf-apigility-welcome”:“〜1.0”,
        “ zfcampus / zf-deploy”:“〜1.0”
    }
}

解决方法:

这是关于适应性的错误.

参见https://github.com/zfcampus/zf-apigility-admin/issues/226.

我现在的解决方法是将文件./vendor/zfcampus/zf-apigility-admin/src/Controller/DocumentationController.php上的$controllerType强制为’rpc’.

标签:composer-php,zend-framework2,json,php,apigility
来源: https://codeday.me/bug/20191121/2050911.html