api-rest:[只读]在PoP API中创建REST端点

时间:2021-02-23 11:54:23
【文件属性】:
文件名称:api-rest:[只读]在PoP API中创建REST端点
文件大小:20KB
文件格式:ZIP
更新时间:2021-02-23 11:54:23
api php rest pop PHP REST API 它允许添加REST端点以检索任何基于URL的资源的数据。 它基于软件包。 安装 通过作曲家 composer require getpop/api-rest 发展 源代码托管在 。 启用漂亮的永久链接 阿帕奇 确保Apache服务器已安装并启用了和模块。 这将根据下面的重写规则启用"[L,P,QSA]"配置"P" 。 在.htaccess添加以下代码以在资源页面URL的末尾支持API端点/api/rest/ : < IfModule> RewriteEngine On RewriteBase / # Rewrite from /some-url/api/rest/ to /some-url/?scheme=api&datastructure=rest RewriteCond %{SCRIPT_FILENAME} !-d RewriteCo
【文件预览】:
api-rest-master
----src()
--------Component.php(1KB)
--------Environment.php(253B)
--------DataStructureFormatters()
--------RouteModuleProcessors()
----LICENSE.md(15KB)
----CONTRIBUTING.md(2KB)
----CODE_OF_CONDUCT.md(3KB)
----composer.json(1KB)
----CHANGELOG.md(303B)
----.github()
--------disabled-workflows()
----README.md(7KB)
----config()
--------services.yaml(299B)
----phpstan.neon.dist(48B)
----rector-downgrade-code.php(866B)
----phpstan.neon(34B)

网友评论