-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
要怎么运行和测试呢? #2
Comments
PHP 5.5 换成 8.0 后执行 TommyMac:hyperf-APIJSON-ed00752ac766ed4dee4cf1656552e3ea956953d0 Tommy$ php bin/hyperf.php start Fatal error: Uncaught Error: Undefined constant "SWOOLE_HOOK_ALL" in /Users/Tommy/Downloads/hyperf-APIJSON-ed00752ac766ed4dee4cf1656552e3ea956953d0/bin/hyperf.php:12 另外代码中的 vendor 目录及文件 autoload.php 都不存在,是否漏上传了? |
docker run -dit --name hyperf-apijson -p 9501:9501 hyperf-apijson:v1
|
APIJSON 是所有请求都用 HTTP POST,只是为了文档上方便演示才对 /get, /head 额外支持 HTTP GET |
tag 的意义在于标记某个请求的目的,例如新增动态、删除评论,这些非开放查询请求需要用 tag, version, method 作为条件从 Request 表查出参数校验规则 structure 来对请求 JSON 做校验字段值和补充键值对。 https://github.com/Tencent/APIJSON/wiki#%E5%AE%9E%E7%8E%B0%E5%8E%9F%E7%90%86 这个可以放后面再实现,现在最重要的是支持复杂关联查询,一对一与一对多(引用赋值),各种 JOIN 和子查询等 |
按照本项目文档已经成功启动了 docker 实例
但再按 Hyperf 官网文档
https://hyperf.wiki/2.2/#/zh-cn/quick-start/install
运行项目时报错
TommyMac:hyperf-APIJSON-master Tommy$ php bin/hyperf.php start
Parse error: parse error in /Users/Tommy/Documents/APIJSON/hyperf-APIJSON-master/bin/hyperf.php on line 24
The text was updated successfully, but these errors were encountered: