3

我对 Apigility 有疑问。

当我将保存我的 REST 服务的文档时,只保存描述整个 REST 服务的字段。

例如,我正在尝试保存响应正文,但没有成功。

我在发布之前检查过的一些事情:

  • 我禁用了 opcache 和 apc。

  • 按下保存按钮后的所有请求都是 200 OK。

  • 我尝试运行作曲家更新,但没有成功。

我的 composer.json

json { "name": "zfcampus/zf-apigility-skeleton", "description": "Skeleton Application for Apigility", "type": "library", "license": "BSD-3-Clause", "keywords": [ "api", "apigility", "framework", "zf2" ], "homepage": "http://apigility.org/", "support": { "email": "apigility-users@zend.com", "irc": "irc://irc.freenode.net/apigility", "source": "https://github.com/zfcampus/zf-apigility-skeleton", "issues": "https://github.com/zfcampus/zf-apigility-skeleton/issues" }, "config": { "process-timeout": 5000 }, "extra": { "branch-alias": { "dev-master": "1.0-dev", "dev-develop": "1.1-dev" } }, "require": { "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.*", "hounddog/doctrine-data-fixture-module": "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" } }

4

2 回答 2

2

这是 Apigility 上的一个错误。

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

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

于 2014-08-29T21:26:28.440 回答
1

dev-master 的更新对我有用:

"zfcampus/zf-apigility-admin": "dev-master"
于 2015-04-08T14:44:30.633 回答