[PHP高可用后端]②0--restful api

[PHP高可用后端]②0--restful api_第1张图片
image.png
[PHP高可用后端]②0--restful api_第2张图片
image.png
[PHP高可用后端]②0--restful api_第3张图片
image.png
[PHP高可用后端]②0--restful api_第4张图片
image.png
[PHP高可用后端]②0--restful api_第5张图片
image.png
[PHP高可用后端]②0--restful api_第6张图片
image.png

https://www.kancloud.cn/manual/thinkphp5/118035

[PHP高可用后端]②0--restful api_第7张图片
image.png

准备工作

[PHP高可用后端]②0--restful api_第8张图片
image.png

config.php

'json',
];

route.php

api/test/ save

Test.php

Postman

GET

[PHP高可用后端]②0--restful api_第9张图片
image.png

PUT

[PHP高可用后端]②0--restful api_第10张图片
image.png
[PHP高可用后端]②0--restful api_第11张图片
image.png

POST

[PHP高可用后端]②0--restful api_第12张图片
image.png

你可能感兴趣的:([PHP高可用后端]②0--restful api)